Actually 'Set' the document properties (title)

P

PaulMac

Hi,

I use:

ActiveDocument.BuiltInDocumentProperties(wdPropertyTitle) =
rs.Fields("fldClaimantLName")

to set the document title property.

I would like when the user clicks file send as attachment...that this
value shows up as the subject of the new email.

the problem: it only works if the user actually clicks
file/properties/ok first.

otherwise the subject is blank...

any ideas to hard set this property?

thanks,
Paul
 
C

Cindy M -WordMVP-

Hi PaulMac,

If this works the same way as for the Save As name, then you should
find an article on the mvps.org/word site written by "Ibby" that covers
this. You have to get to it over a different route, but the details
don't come to mind, at the moment. Best I can recall, it involves using
executing CommandBar command, rather than setting the property
directly.
ActiveDocument.BuiltInDocumentProperties(wdPropertyTitle) =
rs.Fields("fldClaimantLName")

to set the document title property.

I would like when the user clicks file send as attachment...that this
value shows up as the subject of the new email.

the problem: it only works if the user actually clicks
file/properties/ok first.

otherwise the subject is blank...

any ideas to hard set this property?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 

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