Totally Turning off Screen Display, Pt. 2

E

Ed

I followed Jay Freedman's advice about using:

Dim oRg As Range
Set oRg = ActiveDocument.Range
With oRg.Find
' ...
End With

to reduce flashing. That advice works well, but when I need to check on
certain values, I need more help. I need to check certain values and need to
'move' the scope of the range. I am familiar with the '.move' command, as
in:

Selection.MoveRight Count:=alen - Len(TestText)

When I try "oRg.MoveRight count:=alen-Len(TestText)" I get an error
because oRg is a range, not a Selection object.

Apparently one cannot "MoveRight' a range, only a Selection.

Then, when I set the selection to the range (I think the command is
"oRg.Select") the screen 'jumps' and flashes as the selection is made, which
of course is what I wanted to avoid.

Is there anyway to "moveright" or "moveleft" a range to increase its
scope?

-Ed (in Virginia)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top