How to tailor doc name in Access to Word Merged doc?

  • Thread starter Thread starter Penny
  • Start date Start date
P

Penny

Hi All,

I have a bunch of Word (.dot) documents that I merge Candidate info into
from access. I was just wondering which of the Word.Application objects or
methods I could use to give the document a title. As it stands the document
opens merged as required but with the title 'Document1 - Microsoft Word'. I
would like to customize the title to 'Mary Jane Smith - Candidate Details'
for example. Would be much more user friendly.

Any ideas?

P.S God bless the Developers Handbooks: anyone wondering what books can help
guide you from novice through the access learning curve wonder no more. Buy
them!

Penny.
 
Hi Ken,

The code you were getting at seems to be:

Word.Application.ActiveDocument.Name

The name property is apparently 'Read Only' however. It may be because its
based on a word template and not an 'empty' Word doc.

Any other ideas?

Cheers,
Penny.
 
I am not very familiar with Word Automation, so you many need to ask your
question in a Word group.

Did you try
Word.Application.Document.SaveAs

in order to save the new file with a new name?
 
Back
Top