vba - Word Macro Find Last Line of current page -
Macro using a macro in Word, I would like to find the last line of the current page and add a "page break".
Although it should be easy I can not find the script for the last line of the current page.
sub last Panktiinsrt () Select-end is supposed to work to select the last row. Type: = wdPageBreak Using EndSub
The easiest way is probably to choose. Take a letter backing GoToNext (wdGoToPage) and then so:
Selection.GoToNext (wdGoToPage) Selection.MoveEnd wdCharacter, -1 Selection.InsertBreak Note that doing so where words can already be added to the result blank page of a page has a brake. If you are trying to loop, be careful about this.
Comments
Post a Comment