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

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

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

Ken Snell [MVP]

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?
 

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