View Single Post
 
Old 09-18-2017, 05:02 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

Yes, the Word doco on this is lacking. You could use:
Code:
Sub Test()
Dim myRange As Range
Set myRange = ActiveDocument.Range.GoTo(What:=wdGoToLine, Which:=wdGoToAbsolute, Count:=6)
Set myRange = myRange.GoTo(What:=wdGoToBookmark, Name:="\line")
myRange.Select
End Sub
but, when you see what's selected, you'll realise the range often doesn't span the entire line.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote