Highlighting Text 
Author Message
 Highlighting Text

Does anyone know how i can "capture" a highlighting text in word97??

Thanks for helping

George




Wed, 29 Mar 2000 03:00:00 GMT  
 Highlighting Text

Do you mean text that is currently selected or text that has fluorescent
markers?
--
Regards,
Simon Jones
PC Pro Magazine



Quote:
> Does anyone know how i can "capture" a highlighting text in word97??



Wed, 29 Mar 2000 03:00:00 GMT  
 Highlighting Text

You can try selection object: selection.text


Quote:
>Does anyone know how i can "capture" a highlighting text in word97??

>Thanks for helping

>George





Thu, 30 Mar 2000 03:00:00 GMT  
 Highlighting Text

Hi George,

I'm not sure if you mean you want to know how you can select highlighted
text in an document, have a look at this: (simpel macro recording)

    Selection.Find.ClearFormatting      'To be sure cancel previous format
search
    Selection.Find.Highlight = True     'Search for highlighted text
    With Selection.Find
        .Text = ""
        .Replacement.Text = ""
        .Forward = True
        .Wrap = wdFindContinue
        .Format = True                  'Format option in Search should be active
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute              'Do search

Make a loop around this code to select all the highlights in your document
one by one and execute your code.

Hope this helped.

Edwin Witjens

Quote:
> Does anyone know how i can "capture" a highlighting text in word97??

> George





Sun, 02 Apr 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Highlighting text in a text box

2. Highlighted text disappears when spell checking rich text e-mail

3. Highlighting text in a text box

4. How to Highlight text in a text box?

5. Showing or highlighting text when a text box is selected

6. How to Highlight text in a text box.?

7. Outlook 2000 Crashing When Highlighting Text

8. problems: highlighting text and lost mail files

9. Highlighting Text in Textbox

10. XL2000 userform highlighting text problem


 
Powered by phpBB® Forum Software © phpBB Group