Smart way to delete a page in Ms Word!!!
Iniziatore argomento: CafeTran Trainer
CafeTran Trainer
CafeTran Trainer
Paesi Bassi
Membro (2006)
Jan 9, 2024

There is no page object in Word's VBA. However, you can still create a macro to delete the current page.

Click anywhere in the page you want to delete, then press Option+⌘+G on your keyboard. From there, the steps are the same: In that “Enter page number” box, type in “\page.” Hit Enter, select “Close,” check that the page in question is selected, and hit the Delete button on your keyboard.

This can be used to create a macro that deletes the current page w
... See more
There is no page object in Word's VBA. However, you can still create a macro to delete the current page.

Click anywhere in the page you want to delete, then press Option+⌘+G on your keyboard. From there, the steps are the same: In that “Enter page number” box, type in “\page.” Hit Enter, select “Close,” check that the page in question is selected, and hit the Delete button on your keyboard.

This can be used to create a macro that deletes the current page with one keystroke:

Sub DeleteCurrentPage()
Selection.GoTo What:=wdGoToBookmark, Name:="\page"
Selection.Delete
End Sub
Collapse


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Smart way to delete a page in Ms Word!!!






Trados Studio 2022 Freelance
The leading translation software used by over 270,000 translators.

Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop and cloud solution, empowering you to work in the most efficient and cost-effective way.

More info »
Pastey
Your smart companion app

Pastey is an innovative desktop application that bridges the gap between human expertise and artificial intelligence. With intuitive keyboard shortcuts, Pastey transforms your source text into AI-powered draft translations.

Find out more »