hindersaliva
asked on
Word VBA - delete all text of Style("StyleToDelete")
Sorry, newbie question!
In a 500 page Word document, I want to delete all text that I have assigned the Style "StyleToDelete".
Thanks
In a 500 page Word document, I want to delete all text that I have assigned the Style "StyleToDelete".
Thanks
ASKER
Hi Martin. I was hoping there’s a ‘Select all text with Style(“deletethis”)’ and then delete. Like a GoTo in Excel?
‘Finding’ them I know will take at least 30 seconds.
‘Finding’ them I know will take at least 30 seconds.
Hi,
The option to find styles is there in word. ( I tested the below in Word 2016)
1. Goto Find and Replace - Shortcut Ctrl+H
2. From the format button choose style - For example Heading 1 and click OK.
3. Put something into Replace with text box or keep it empty if you want to replace with nothing.
4. Click Replace All.
See the attached pic.
Word_FindStyleAndReplaceAll.PNG
The option to find styles is there in word. ( I tested the below in Word 2016)
1. Goto Find and Replace - Shortcut Ctrl+H
2. From the format button choose style - For example Heading 1 and click OK.
3. Put something into Replace with text box or keep it empty if you want to replace with nothing.
4. Click Replace All.
See the attached pic.
Word_FindStyleAndReplaceAll.PNG
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window