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 / November 2004

Tip: Looking for answers? Try searching our database.

Save a file with predefined file name and directry

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TawiMunsoor - 08 Nov 2004 02:28 GMT
I would like to save a file automaticly before I close it , the name of the
file shall be a bookmark and directry is for example
g:\projects\letters\2004.Word2002

Thanks
Doug Robbins - 12 Nov 2004 02:45 GMT
Dim fname as String

fname = ActiveDocument.Bookmarks("yourbookmarkname").Range.Text
ActiveDocument.SaveAs "Drive:\Path\" & fname

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

>I would like to save a file automaticly before I close it , the name of the
> file shall be a bookmark and directry is for example
> g:\projects\letters\2004.Word2002
>
> Thanks
 
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.