When I save the document (File/Save As), I'd like Word to suggest the
filename "nyfilename.doc" of the document in the save as dialogbox. How can
this be done? I know how to do this from the subroutine, but not from Word
File menu, Save AS..?
Sub SaveAsSub()
Dim oDlg As Dialog
Dim sPth As String
sPth = Options.DefaultFilePath(wdDocumentsPath) & "\"
Set oDlg = Dialogs(wdDialogFileSaveAs)
oDlg.Name = sPth & "myfilename.doc"
oDlg.Show
End Sub
Jezebel - 07 Mar 2005 11:01 GMT
Change the name of your sub to FileSaveAs.
> When I save the document (File/Save As), I'd like Word to suggest the
> filename "nyfilename.doc" of the document in the save as dialogbox. How
[quoted text clipped - 16 lines]
>
> End Sub
Senad Isanovic - 09 Mar 2005 14:59 GMT
Yes, it works fine via File/SaveAs but not if I click on the Save button in
the toolbar, why is that?
> Change the name of your sub to FileSaveAs.
>
[quoted text clipped - 18 lines]
>>
>> End Sub
Jezebel - 11 Mar 2005 06:20 GMT
Because that's FileSave, not FileSaveAs
> Yes, it works fine via File/SaveAs but not if I click on the Save button
> in the toolbar, why is that?
[quoted text clipped - 21 lines]
>>>
>>> End Sub