Create file name automatically

D

Davey

Hello all,

In Excel I can create a filename automatically based on certain fields in
the spreadsheet. And use a VBA button to save the file under this file name.

I would like to do the same thing in a Word file based on certain text
entries or bookmarks in the file. Can this be done?

I have been searching around on the MVP's websites but found no answer on
this question.

mfg,
Davey
 
D

Doug Robbins - Word MVP

With ActiveDocument
.SaveAs "Drive:\Path\" &
..Bookmarks("yourbookmarkthatcontainsthefilename").Range.Text
End With

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

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