Click here to Skip to main content
15,921,905 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Resolotuin Change! Pin
30-May-01 2:30
suss30-May-01 2:30 
QuestionHow to create charts via VB?? Pin
16-May-01 21:25
suss16-May-01 21:25 
AnswerRe: How to create charts via VB?? Pin
5-Jun-01 22:08
suss5-Jun-01 22:08 
Generalappend a file with DoCmd.TransferText Pin
16-May-01 11:20
suss16-May-01 11:20 
GeneralRe: append a file with DoCmd.TransferText Pin
Giles16-May-01 12:22
Giles16-May-01 12:22 
GeneralRe: append a file with DoCmd.TransferText Pin
17-May-01 6:41
suss17-May-01 6:41 
GeneralCode for save Pin
16-May-01 7:25
suss16-May-01 7:25 
GeneralRe: Code for save Pin
Bee19-May-01 18:19
Bee19-May-01 18:19 
Here's one way...

Sub SaveDocToFile()
' Replace "Any.Doc" with your document name
' type with or without path you want to save it to

Dim strSaveAs As String
Dim strMsg As String

strSaveAs = "Any.Doc"

strMsg = "Choose Yes to overwrite the existing document " & vbCrLf _
& "'" & strSaveAs & "'" & " or No to save as a new document"

If Dir(strSaveAs & "*") = "" Then
ActiveDocument.SaveAs FileName:=strSaveAs
Else
Select Case MsgBox(strMsg, vbYesNoCancel + vbExclamation)
Case vbYes
ActiveDocument.SaveAs FileName:=strSaveAs
Case vbNo
With Dialogs(wdDialogFileSaveAs)
.Name = ""
.Show
End With
Case Else
End Select
End If
End Sub
QuestionInet and upload file ?? Pin
LANNEZVAL15-May-01 22:44
LANNEZVAL15-May-01 22:44 
GeneralVB Pin
14-May-01 18:38
suss14-May-01 18:38 
GeneralRe: VB Pin
Le Ridder Noir14-May-01 21:10
Le Ridder Noir14-May-01 21:10 
GeneralRe: VB Pin
28-May-01 20:35
suss28-May-01 20:35 
GeneralRe: VB Pin
Mangesh Sardesai15-May-01 21:54
Mangesh Sardesai15-May-01 21:54 
GeneralLaunch MS Word and open file Pin
Richard Cheng11-May-01 7:23
Richard Cheng11-May-01 7:23 
GeneralRe: Launch MS Word and open file Pin
LANNEZVAL14-May-01 3:42
LANNEZVAL14-May-01 3:42 
GeneralRe: Launch MS Word and open file Pin
LANNEZVAL14-May-01 23:23
LANNEZVAL14-May-01 23:23 
GeneralCalling Extension DLLs from VB or MATLAB Pin
Kaitain8-May-01 5:21
Kaitain8-May-01 5:21 
GeneralDereferencing in VisualBasic Pin
5-May-01 9:14
suss5-May-01 9:14 
GeneralRe: Dereferencing in VisualBasic Pin
5-May-01 12:33
suss5-May-01 12:33 
GeneralSave date and time to a txt document Pin
3-May-01 9:01
suss3-May-01 9:01 
GeneralRe: Save date and time to a txt document Pin
Konstantin Vasserman5-May-01 7:20
Konstantin Vasserman5-May-01 7:20 
GeneralDetect Application Launch Pin
Ray Brack24-Apr-01 18:21
Ray Brack24-Apr-01 18:21 
GeneralRe: Printer Pin
19-May-01 0:20
suss19-May-01 0:20 
Generalrename file Pin
23-Apr-01 10:00
suss23-Apr-01 10:00 
GeneralRe: rename file Pin
Jason Gerard23-Apr-01 10:21
Jason Gerard23-Apr-01 10:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.