Thread: Delete Page
View Single Post
 
Old 07-16-2014, 10:54 PM
Syed_Farid Syed_Farid is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Jul 2014
Posts: 1
Syed_Farid is on a distinguished road
Default Delete Page

While entering this code, I am getting the error bellow: Please help

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


Error: Wrong number of argument or invalid property assignment .
Reply With Quote