Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Style Modification

Status
Not open for further replies.

spazman

Programmer
May 29, 2001
500
CA
We have a macro that insert doc info into the footer. It uses the Footer Style in Word. We recently encountered an issue where some docs had a modified Footer style, so we inserted into the macro code to modify the style back to our standard. The changing of the style works but the footer still shows with the old style settings. Is there a way in Word VBA to change the style and have it update the document.
 
Hi spazman,

The style change should happen automatically. How are you doing it?

Enjoy,
Tony
 
we are using a macro, the style chnages, if you look in Format Style, the change has taken place, the problem is the document does not reflect the change in the style, unless you remove the footer information and put it right back. We would like to avoid this.
 
Hi spazman,

Is there some formatting applied to the text which is overriding the style? Removing the text and then putting it back might clear that out. Try applying the style after you have changed it.

Enjoy,
Tony
 
No, basically just some text about the document number (DMS) and the authors initials, no formattting, it just sits in a text box, within the footer.
 
Hi spazman,

Very interesting. You mean a real textbox (off the control toolbox toolbar)? I've just had a play and they seem to inherit the style at creation but not to be tied to it afterwards. I'm not sure, at the moment, what to suggest if that is the case. Sorry not to be more helpful.

Enjoy,
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top