Auto Open Macro

D

Danny Pacheco

Does anyone know how to create an AutoOpen macro to update the styles
("automatically update document styles setting) of a document only if the
document variable/property is in Draft mode, but not if it's Active?

I work in version control strategy environment where its crucial to maintain
outaded styles that occured in the past. Does that makes sense?
 
J

Jonathan West

Danny Pacheco said:
Does anyone know how to create an AutoOpen macro to update the styles
("automatically update document styles setting) of a document only if the
document variable/property is in Draft mode, but not if it's Active?

I work in version control strategy environment where its crucial to
maintain
outaded styles that occured in the past. Does that makes sense?

You can use the UpdateStyles method to update the styles from the template.
You can put that in an If-Then construction where you first test the value
of your document variable or document property. to read a document variable,
you access the Variables collection of the document, to read a custom
document property, access the CustomDocumentProperties collection.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
Top