View Single Post
 
Old 09-28-2012, 07:04 AM
ramsgarla ramsgarla is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Sep 2012
Posts: 21
ramsgarla is on a distinguished road
Default 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.



Reply With Quote