Formatting text in Footer?

A

Armey

I have some vba code that I use to update my footer from a userform.
It all works as I have coded it but I am having trouble formatting the
footer text after I update it. For example on my first bookmark I
want it to be left justified and my page x of y that is already in the
footer, I want it right justified. Any ideas?

Thanks!
 
G

Greg Maxey

No, not without seeing your code. If it isn't a state secret, why don' t
you post it?
 
D

Doug Robbins - Word MVP

Have the text appear in the footer by the use of a DOCVARIABLE field and
have the code in your userform set the value of the variable and update the
fields in the .Range of the footer. Then you can include a \* charformat
switch to the field if necessary and apply the desired formatting to the D
of DOCVARIABLE.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
A

Armey

Doug, excellent... this worked! Thank you.


Have the text appear in the footer by the use of a DOCVARIABLE field and
have the code in your userform set the value of the variable and update the
fields in the .Range of the footer. Then you can include a \* charformat
switch to the field if necessary and apply the desired formatting to the D
of DOCVARIABLE.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP







- Show quoted text -
 

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