A
Alan F.
Could anybody help me with this?
I write quite a few simple macros that work ok. Now I want to write
one that simply globally removes any highlighting from text I have
set. That's not the problem, but I want the document to remain where
it is on the screen, i.e. remember the cursor poition, carry out the
changes and redisplay the original page. At the moment the cursor just
goes to the last page. Anybody help?
Sub remove_highlights()
Application.ScreenUpdating = False
Selection.WholeStory
Selection.Range.HighlightColorIndex = wdNoHighlight
End Sub
Regards Alan F.
I write quite a few simple macros that work ok. Now I want to write
one that simply globally removes any highlighting from text I have
set. That's not the problem, but I want the document to remain where
it is on the screen, i.e. remember the cursor poition, carry out the
changes and redisplay the original page. At the moment the cursor just
goes to the last page. Anybody help?
Sub remove_highlights()
Application.ScreenUpdating = False
Selection.WholeStory
Selection.Range.HighlightColorIndex = wdNoHighlight
End Sub
Regards Alan F.