Save a file with predefined file name and directry


T

TawiMunsoor

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
 
Ad

Advertisements

D

Doug Robbins

Dim fname as String

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

--
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top