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

B

Blackberry

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
 
S

Shauna Kelly

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
 

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