P
pennyg
I have a macro to insert shapes into page headers but it
doesn't always place the shape into the expected header.
The macro loops through each section, checks whether the
firstpage header is different and if so places the shape
into both the primary and first pages otherwise it is just
placed into the first header. Example of placing into the
Primary header is:
Set shapename = ActiveDocument.Sections(sectNo).Headers
(wdHeaderFooterPrimary).Shapes. _
AddTextEffect(msoTextEffect2, wording, "Arial
Black", 36#, msoFalse, msoFalse, 248.75, 112.7)
I will get both the primary and first page text appearing
in the same header, it seems to vary which header it will
use.
Can anyone suggest a reason for this?
FYI - the same code will insert a text box into a document
correctly taking into account second breaks etc.
Thanking you in advance
P.
doesn't always place the shape into the expected header.
The macro loops through each section, checks whether the
firstpage header is different and if so places the shape
into both the primary and first pages otherwise it is just
placed into the first header. Example of placing into the
Primary header is:
Set shapename = ActiveDocument.Sections(sectNo).Headers
(wdHeaderFooterPrimary).Shapes. _
AddTextEffect(msoTextEffect2, wording, "Arial
Black", 36#, msoFalse, msoFalse, 248.75, 112.7)
I will get both the primary and first page text appearing
in the same header, it seems to vary which header it will
use.
Can anyone suggest a reason for this?
FYI - the same code will insert a text box into a document
correctly taking into account second breaks etc.
Thanking you in advance
P.