Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Hellmasker Hellmasker is offline
Junior Member
 
Posts: 0
Default Selecting or deleting all text with certain formatting

Hi everyone,

I have approximately 35000 words that has been edited by an editor. He put a line through all text that he thinks is incorrect and added text that is underlined to replace the incorrect text.

I would like to figure out how to select all the text with the strikethrough formatting and delete it AND select all text with the underline formatting and remove the underline formatting.

I have no experience with macros but I found this to delete all misspelled words:

Dim i As Long
With ActiveDocument
For i = .SpellingErrors.Count To 1 Step -1
.SpellingErrors(i).Delete
Next i
End With

From my programming experience, I'd think SpellingErrors would have to be replaced with something that selects the underline format.

Can anyone help? Would be greatly appreciated! Thanks.
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting Text Boxes without Deleting Text. green Microsoft Word Help 2 February 12th 09 05:51 AM
Deleting strange formatting Paul Microsoft Word Help 11 November 6th 07 06:45 AM
Selecting a part of text in Text FormField Mirjana Microsoft Word Help 0 March 9th 07 10:59 AM
Selecting text and then typing does not delete selected text Brahe Microsoft Word Help 1 October 17th 05 02:04 PM
Styles- Problem Selecting all text with the same formatting Sheri Microsoft Word Help 1 April 1st 05 04:40 AM


All times are GMT +1. The time now is 08:33 PM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"