Thread: [Solved] shapes in header
View Single Post
 
Old 10-14-2015, 08:03 AM
mhagi mhagi is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Oct 2015
Posts: 8
mhagi is on a distinguished road
Default shapes in header

Hi all,
I’m fiddling around with shapes in headers.
I have 3 sections.
Sectionstart is always wdsectionnewpage.
Differentfirstpageheaderfooter is always 0 =false
Headers are not linked to previous.
Every section has 1 shape in header.
Now, when I try to count the shapes in primary header of section(1)
Activedocument.sections(1).headers(wdheaderfooterp rimary).shapes.count
I get 3 instead of 1.
Every additional section not linked to previous adds 1 to shapes.count.
Help says, shapes are counted for given section only and has example.

Where do I go wrong? I want number of shapes in defined header of defined section.

Thanks in advance
mhagi
Reply With Quote