Web i googled that and i think the (only?) way is to create a mergefield with that info, at the very beginning of the page, then extract and delete it from the page with a.
How to delete multiple pages in word vba. Web if we want to delete the blank page: Web press ‘enter’ on your keyboard. Web this will delete the pagebreak (if exists) from the 6th page.
To delete an extra blank page that might get added at the end of your document, click the view tab: Doing this selects all the pages you want to delete. Go to the navigation pane.
Web #1 i have a list of pages that i want to delete in ms word such as page number : Web click the developer tab and then click macros in the code group. Set rgepages = selection.range selection.goto.
Web if pagenumber = 1 then dim wordapp as object set wordapp = createobject (word.application) wordapp.documents.add wordapp.visible = false application.wait. I'm using excel vba to create and populate a word document and i'd like to delete a specific page in that document. To simultaneously delete all these pages from your document, press the ‘delete’ button on.
After the macro has been run, the document contains. Web each page has a textbox which contains the text delete this page (this is the text the macro is looking for). I found a code to delete.
Imports word = microsoft.office.interop.word public class form1 '~~> define your excel objects dim. In the resulting dialog box, select finddeletepage (), as shown in figure b, and click run.