![]() |
#7
|
||||
|
||||
![]()
Indeed it is. Note how in post #3 you used:
Set myRange = ActiveDocument.Content.GoTo(what:=wdLine, which:=wdGoToAbsolute, Count:=6) (as per the MS doco), whereas in post #5 I used: Set myRange = ActiveDocument.Range.GoTo(What:=wdGoToLine, Which:=wdGoToAbsolute, Count:=6) That gets myRange to the start of line 6 and, according to MS: Set myRange = myRange.GoTo(What:=wdGoToBookmark, Name:="\line") should expand myRange to span the whole line. It's results are inconsistent, however, and often fails to span the entire line.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
seyzna | Word | 7 | 05-22-2023 10:57 AM |
![]() |
wblock@cnu.edu | Word | 4 | 08-23-2017 06:11 PM |
![]() |
mssodium1219 | Word | 3 | 04-01-2015 04:24 AM |
![]() |
paulkaye | Word | 4 | 12-06-2011 11:05 PM |
Word 2003 cuts the last line of my document off | wordboy9317 | Word | 0 | 10-12-2009 08:44 AM |