zoqainnovations.blogg.se

Delete full pages in word
Delete full pages in word












delete full pages in word

Running macro will trigger an input box.Selection.GoTo What:=wdGoToPage, Which:=wdGoToAbsolute, Count:=Split(strPage, ",")(nSplitItem) ' Find specified pages and highlight their contents. "use comma to separate numbers", "Delete Pages", "For example: 1,3") StrPage = InputBox("Enter the page numbers of pages to be deleted: " & vbNewLine & _ ' Initialize and enter page numbers of pages to be deleted. Follow steps above to install and run a macro.Finally, click “Run” button or hit “F5”.Then click “Insert” and choose “Module” on that menu.If the “Developer” tab is not yet available in the Ribbon, press “Alt+ F11” instead. Open VBA editor in Word by clicking the “Developer” tab and then the “Visual Basic”.To begin with, put cursor on the page you want to delete.First let’s show you how to delete current page via VBA. Delete Current Pageįor those who hate to make selection over a range of text, this can be your blessing. The appealing approach is to run a Word macro. What’s more, you skip the selection step and delete multiple pages at once. This certainly will get you what you want. Most people choose to make a selection and then press either “Delete” or “Backspace” shall do the task. And deleting pages of contents is just as necessary as other modifications. Step 5: Now, simply hit the Delete button on your keyboard and the page (here ) is deleted.In this article, we will focus on demonstrating you of how to delete multiple pages in your Word document via VBA.ĭrafting a document requires adjustments all the time. Step 4: In the Find and Replace prompt, go to Enter Page number field, type \page, and hit Enter. Next, press the Ctrl + G together on your keyboard to open the Find and Replace prompt. For example, we want to delete and so, we placed the cursor on. Step 3: Now, simply place the cursor anywhere on the page that you want to delete. You can set it as per your view requirement. This makes it easier to view the page which you want to delete. For instance, here we have set it to 33% that helps us view all the five pages in a single view. Step 2: Click on the Zoom option with search tool icon and adjust the Percent field as per your view requirement. Now, click on the View tab in the toolbar and click on Multiple pages option to view your document in multiple page view. Step 1: Open the MS Word document from where you want to delete a page.














Delete full pages in word