Re: Calling macro function from within a header/footer?



Word documents just don't work this way. Headers and footers are displayed
text. You can't run code there. Nor are they specific to the page: headers
and footers belong to the section. Nor do they have security settings.




"ML" <schooner@xxxxxxxxxxxxx> wrote in message
news:O9t51qO8FHA.2152@xxxxxxxxxxxxxxxxxxxxxxx
>I want to have a the ability for code within the header or footer to make
>use of a function. Basically I have a bunch of code within the header that
>handles checking for security tag fields (sequence markers) on each page
>(nested if else statements) to determine the header security setting for
>that page. I'd like to have this done in a function if possible instead of
>nested statements inside the header itself.
>
> "Jezebel" <warcrimes@xxxxxxxxxxxxxx> wrote in message
> news:%230lp5tN8FHA.3636@xxxxxxxxxxxxxxxxxxxxxxx
>> The question makes no sense. Parts of a document don't 'use' a macro;
>> people do. What are you trying to achieve?
>>
>>
>>
>>
>> "ML" <schooner@xxxxxxxxxxxxx> wrote in message
>> news:uyUQh6G8FHA.2576@xxxxxxxxxxxxxxxxxxxxxxx
>>> Is it possible to have a header/footer that users a macro function to
>>> set a value?
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: In Word, how do I surpress headers and footers on page 2
    ... This does not suppress headers and footers, ... a new first page header and first page footer are created. ... Here is some general info on moving from Word Perfect to Word: ... As for converting documents from Word Perfect to _use_ in Word... ...
    (microsoft.public.word.docmanagement)
  • Re: changing headers on odd pages of a book
    ... footers: text that will replicate across the top and bottom of each page. ... Each header and footer begins blank: it doesn't actually exist in the ... A "Style" is simply a collection of formatting properties to ... Heading 9, for your headings. ...
    (microsoft.public.mac.office.word)
  • Re: headers
    ... If you choose View, Header & Footer, you will see a dotted outline of the ... I have reduced the size of the paragraph mark within the ... So why are these "placeholders" causing a problem? ... >> inserted headers and footers. ...
    (microsoft.public.word.newusers)
  • Re: Headers and Footers have conflict due to page/section breaks
    ... You can use a StyleRef field to pick up the chapter name and number, but you may still want section breaks between chapters if you want to omit a header on the first page of the chapter). ... You can have footers linked and headers unlinked. ... If, however, you're saying you need continuous page numbers in the footer and pagination by chapter in the header, then this is a different problem. ... Footers need a Copyright notice and sequential page numbers throughout the ...
    (microsoft.public.word.pagelayout)
  • Re: is there a way to change default setting on where page numbers will be?
    ... Page numbers can be applied without using headers or footers (via Insert ... incorporating page numbering as part of the header or footer makes it much ... To continue page numbering shown in the header or footer, to re-start at 1, ... Your Normal template should be in your Microsoft User Data folder, ...
    (microsoft.public.mac.office.word)