Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

File, SaveAs, "filename"?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Senad Isanovic - 07 Mar 2005 08:47 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.