hallo,
I have a different header for every new section of my word document.
These headers are different but every header contains one shape element.
I am trying to modify the shape element in each header, but I always modify only the header of the section 1.
The code I use to iterate through the different headers is this one:
where "doc" is the ActiveDocument and "section" is the iterator variable from 1 to n. No matter what "section" is, I always modyfing the shape 1 in section 1.
Someone knows?
thanks
I have a different header for every new section of my word document.
These headers are different but every header contains one shape element.
I am trying to modify the shape element in each header, but I always modify only the header of the section 1.
The code I use to iterate through the different headers is this one:
Code:
doc.Sections(section).Headers(Word.WdHeaderFooterIndex.wdHeaderFooterPrimary).Shapes(1).IncrementTop(23.25)
Someone knows?
thanks