|
-
Jan 5th, 2001, 04:36 AM
#1
Thread Starter
Addicted Member
can some one tell me how do i open the showsave dialog box with a default directory
such as c:\a\b\c
Dim extenion As String
saveFile = ""
extention = ""
saveFile = oWord.ActiveDocument.Name
myString = Split(saveFile, ".")
saveFile = myString(0)
ffilename = myString(0)
'extension = myString(1)
saveFile = myString(0)
Dim pa As String
CommonDialog1.FileName = saveFile& "-INT#1"
CommonDialog1.CancelError = True
On Error Resume Next
CommonDialog1.ShowSave
Dim ex As String
this is the code i have
any suggestions??
if do this
Dim extenion As String
saveFile = ""
extention = ""
saveFile = oWord.ActiveDocument.Name
myString = Split(saveFile, ".")
saveFile = myString(0)
ffilename = myString(0)
'extension = myString(1)
saveFile = myString(0)
pa = app.path
Dim pa As String
CommonDialog1.FileName = pa & "-INT#1"
CommonDialog1.CancelError = True
On Error Resume Next
CommonDialog1.ShowSave
Dim ex As String
i get the the path c:\a\b\
but then the c goes into the filename box
weird!!!
-
Jan 15th, 2001, 10:19 AM
#2
New Member
Just add:
Code:
CommonDialog1.InitDir = "c:\a\b\c\"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|