replace header text: get section data in header to halt infinite loop VBA

S

shane

VBA macro, which replaces header text when recorded, does
NOT replace header text when called.

I then forced macro into header and it replaces fine, but
the ActiveWindow.ActivePane.View.NextHeaderFooter goes into
an infinite loop.

Tried getting section number using old WordBasic command
(SelInfo(2)), as well as page number (SelInfo(3))
NewPg = WordBasic.SelInfo(3)
then compairing "NewPg" with prior page variable "OldPg".

Variables don't seem to fill.

Any suggestions appreciated. THANK YOU.
 

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