creating a macro for a table in word 97

D

dhickey

I need to be able to create a macro to search through my whole document
and look for all tables and change all the shading it has to 10%. I am
using WORD97

I am not real good with VBA. Does somebody know how I could do this?

Thanks

Debbie
 
J

Jezebel

Dim pTable as Word.Table

For each pTable in ActiveDocument
pTable.Shading.BackgroundPatternColor = wdColorGray10
Next
 

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