Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2005

Tip: Looking for answers? Try searching our database.

Auto Open Macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Danny Pacheco - 26 Apr 2005 23:59 GMT
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?
Jonathan West - 27 Apr 2005 00:09 GMT
> Does anyone know how to create an AutoOpen macro to update the styles
> ("automatically update document styles setting) of a document only if the
[quoted text clipped - 3 lines]
> 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.

Signature

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 

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.