View Single Post
 
Old 02-15-2019, 02:12 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The line:
Set Rng = .GoTo(What:=wdGoToPage, Name:=iPage)
points Rng to the start of a particular page, in the case the page represented by whatever iPage is. The line:
Set Rng = Rng.GoTo(What:=wdGoToBookmark, Name:="\page")
tells Rng to span the page it's pointing to.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote