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
 
Top