Totally Turning off Screen Display, Pt. 2

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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)


.



Relevant Pages

  • Re: Deriving the word (range) at cursor location
    ... Private Sub App_WindowSelectionChange(ByVal Sel As Selection) ... Dim sWord As String ... Dim oRg As Range ... When you set .Format = True, that's telling Word to use whatever ...
    (microsoft.public.word.vba.customization)
  • Re: Deriving the word (range) at cursor location
    ... When you set .Format = True, that's telling Word to use whatever ... Private Sub App_WindowSelectionChange(ByVal Sel As Selection) ... Dim sWord As String ... Dim oRg As Range ...
    (microsoft.public.word.vba.customization)
  • Re: Selecting Specific Range Within A Document Without Search (Word 2003)
    ... Having done that you must then manipulate oRg instead of Selection. ... I decided to record the tasks and then substitute the Range Object for the Selection Object. ... .MatchWholeWord = False ...
    (microsoft.public.word.vba.general)
  • Re: mail spoofed/phishing
    ... How would IMF or James advice would help me? ... But the point is that if you send anything outside of the Exch Org ... Batch jobs from a sendmail server within your org but not part of ...
    (microsoft.public.exchange.admin)
  • Re: Combo Box Selection in Query Criteria Line
    ... Org, if only an org is selected from combo box ... I nothing is in the query results. ... these fields if a selection is made from the respective ... >>query has the following in the criteria line for these ...
    (microsoft.public.access.formscoding)