How to catch event of opening a header?

J

Joerg Eisentraeger

Hi all,

I want to refresh all fields in a header when the user opens the header
to edit it. How can I catch the event "Header_is_open" or like this?


Greatings from Germany
Joerg
 
S

Stan Scott

George,

Use the code here:
http://word.mvps.org/FAQs/Customization/ProtectWord2000PlusHeader.htm as the
basis for your work. Basically, you set up an event,
"WindowSelectionChange" for the Word application. This event then checks
the "StoryType" of the current selection. If it's one of the following:

wdEvenPagesHeaderStory
wdFirstPageHeaderStory
wdPrimaryHeaderStory

you know the user has selected the header, and can then go on to update your
header fields.

Stan Scott
New York City
 

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