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 / October 2007

Tip: Looking for answers? Try searching our database.

Embed styles in Word template or create them on the fly - pros and cons?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Blackberry - 09 Oct 2007 19:04 GMT
Hi All

Shauna Genius has provided me with some great code to get round my
background colours issue in my VB6 to MS Word table using VBA, but involves
creating some bespoke styles.

My question is, would I benefit from pre-creating the styles in my Word doc
template file or would it make no difference if I created these styles via
VBA at runtime?

I'm going to need about 20 different styles at any one time, so I'm waying
up the odds which is best option.

Thanks
Shauna Kelly - 10 Oct 2007 04:44 GMT
Hi

My general rule is: put the styles in the template unless you absolutely
can't do it any other way but on the fly.

However, if I'm building a complex template for a client over a period of
time, I always create code to create the template. That means I can
re-create the template and its styles from scratch whenever I need to (eg
when the template decides to acquire some corruption, as one did just this
week). But that's for industrial strength jobs; for routine things I just
open the template and modify the styles there. In both cases the net result
is the same: the styles are in the template.

But let's see what others think, too.

Shauna

Shauna Kelly.  Microsoft MVP.
http://www.shaunakelly.com/word

> Hi All
>
[quoted text clipped - 12 lines]
>
> Thanks

Rate this thread:






 
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.