Unable to retain section page numbering while removing the blank pages in MS word 201
Hi,
I am trying to generate a word document (Word 2010) which has multiple sections in it and page numbering starts with 1 for each section.
My document has some blank pages in some of the sections and i am using the below code to remove the blank pages .
When i delete the blank page , my section page numbering is not retained.
page numbering starts from 1 to end of the document inspite of having different sections in it .
PWordApp.Selection.EndKey(Unit:=Word.WdUnits.wdSto ry)
PWordApp.Selection.TypeBackspace()
PWordApp.Selection.Delete()
Please let me know how can i retain page numbering at section level after deleting the blank pages in word 2010.
|