Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2012, 07:04 AM
ramsgarla ramsgarla is offline Unable to retain section page numbering while removing the blank pages in MS word 201 Windows 7 64bit Unable to retain section page numbering while removing the blank pages in MS word 201 Office 2010 64bit
Novice
Unable to retain section page numbering while removing the blank pages in MS word 201
 
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
  #2  
Old 09-28-2012, 03:15 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Unable to retain section page numbering while removing the blank pages in MS word 201 Windows 7 64bit Unable to retain section page numbering while removing the blank pages in MS word 201 Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 3,871
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

When deleting, most likely you are deleting one or more section breaks; this would explain why you lose page number restarts (which are section-level formatting).
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #3  
Old 09-30-2012, 01:11 PM
Charles Kenyon Charles Kenyon is online now Unable to retain section page numbering while removing the blank pages in MS word 201 Windows Vista Unable to retain section page numbering while removing the blank pages in MS word 201 Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,082
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

See Sections / Headers and Footers in Microsoft Word 2007-2010
Reply With Quote
  #4  
Old 10-01-2012, 03:52 AM
ramsgarla ramsgarla is offline Unable to retain section page numbering while removing the blank pages in MS word 201 Windows 7 64bit Unable to retain section page numbering while removing the blank pages in MS word 201 Office 2010 64bit
Novice
Unable to retain section page numbering while removing the blank pages in MS word 201
 
Join Date: Sep 2012
Posts: 21
ramsgarla is on a distinguished road
Default Unable to Retain Section Page numbering while removing blank pages in MS word 2010

Hi,

Can you please help me out if you have any code sample (.Net) which can show me how to delete blank pages without deleting section breaks.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to retain section page numbering while removing the blank pages in MS word 201 Page numbering with Section 1.1 Page 1 sunalta Word 1 05-31-2012 02:48 PM
Unable to retain section page numbering while removing the blank pages in MS word 201 Page Breaks, Headers, Blank Pages? jnbwolf Word 2 12-21-2011 12:33 AM
Unable to retain section page numbering while removing the blank pages in MS word 201 Page numbering starting on 2 after section break pamm13 Word 1 06-22-2011 11:10 AM
Unable to delete the last blank page. anandjeevakan Word 0 12-11-2009 05:20 AM
Section breaks, footers and page numbering yeswab Word 0 03-19-2009 06:37 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:07 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft