![]() |
#1
|
|||
|
|||
![]()
I want to delete page break using vba. This is what I am using:
Dim Rng As Range, iPage As Long iPage = 2 With ActiveDocument Set Rng = .GoTo(What:=wdGoToPage, Name:=iPage) Set Rng = Rng.GoTo(What:=wdGoToBookmark, Name:="\page") Rng.Delete End With When I step through the value passed to Rng is ".................. how can the above code be changed to accomplish my purpose? Also need to change footer after i delete page break. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Aston | Word | 9 | 04-27-2022 07:38 AM |
![]() |
Carlabasson | Word | 2 | 03-25-2013 10:13 PM |
Page break? | Jon | Word | 3 | 01-29-2013 09:08 AM |
![]() |
wordpunk | Word VBA | 1 | 07-03-2012 03:05 PM |
paragaph hard break, soft break and ...strange break | czomberzdaniela | Word | 2 | 12-03-2010 06:58 PM |