Gaurav
2009-11-14 12:10:01 UTC
Hi,
I have some tables in Header and Footer of Word 2007 document which has some
manual settings for its left margines in Inches.
I need some code to forcefully reset the Tables in Header and Footer to
Center align Horizontally.
I used the following code but does not seems to do anything:
With ActiveDocument.Sections(iSectionIndex)
.Headers(wdHeaderFooterPrimary).Range.ParagraphFormat.Alignment =
wdAlignParagraphCenter
End With
Please suggest the possible code to resolve this.
I have some tables in Header and Footer of Word 2007 document which has some
manual settings for its left margines in Inches.
I need some code to forcefully reset the Tables in Header and Footer to
Center align Horizontally.
I used the following code but does not seems to do anything:
With ActiveDocument.Sections(iSectionIndex)
.Headers(wdHeaderFooterPrimary).Range.ParagraphFormat.Alignment =
wdAlignParagraphCenter
End With
Please suggest the possible code to resolve this.