View Single Post
 
Old 05-23-2018, 03:03 AM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,164
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You need to pay careful attention to your code. What do you expect that the Extend option does on the following line?
Selection.MoveUp Unit:=wdParagraph, Count:=8, Extend:=wdExtend

Make that line end after the 8 and you will be moving the cursor instead of extending the selection
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote