E
eholz1
Hello Word Group,
I thought the above task would be easy. Wrong. (at least not for
me!).
No prob using activedocument.save or saveas.
I would like to present the user with a dialog window, so the user can
save a file (in *.doc format only)
but be able to name it as the user desires, and put it where the user
desires.
I would like to do this from vba.
I have the following code which opens (show) a dialog window, but it
opens to the *.dot filetype,
I can navigate to "C:\My documents", but the file is never saved.
code is below:
Sub ShowSaveAsDialog()
Dim dlgSaveAs As Object
' Dim ePath As String
'ePath = "C:\My Documents\"
Set dlgSaveAs = Dialogs(wdDialogFileSaveAs)
dlgSaveAs.Show
End Sub
(i have tried dlgSaveAs.Execute - it errors out.
I want this code to be in a module in a custom template (as opposed to
Normal.dot),
any tips on this one???
thanks
ewholz
I thought the above task would be easy. Wrong. (at least not for
me!).
No prob using activedocument.save or saveas.
I would like to present the user with a dialog window, so the user can
save a file (in *.doc format only)
but be able to name it as the user desires, and put it where the user
desires.
I would like to do this from vba.
I have the following code which opens (show) a dialog window, but it
opens to the *.dot filetype,
I can navigate to "C:\My documents", but the file is never saved.
code is below:
Sub ShowSaveAsDialog()
Dim dlgSaveAs As Object
' Dim ePath As String
'ePath = "C:\My Documents\"
Set dlgSaveAs = Dialogs(wdDialogFileSaveAs)
dlgSaveAs.Show
End Sub
(i have tried dlgSaveAs.Execute - it errors out.
I want this code to be in a module in a custom template (as opposed to
Normal.dot),
any tips on this one???
thanks
ewholz