View Single Post
 
Old 07-07-2020, 12:38 AM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
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

The code looks about right.

Is the last thing in your test document red text?

If you add this following line before myRange.Collapse, what is special about the selection when you step through the code?
myRange.Select
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote