![]() |
|
#1
|
|||
|
|||
|
Hi,
I have found the following macro that deletes text in a particular style. I need to remove text that are made up of multiple styles in a document (about 15 of them) please could someone let me know if there is a quick way of adapting this macro to make it delete multiple styles rather than just "Heading 3"? Thanks Sub DeleteStyledText() With ActiveDocument.Content.Find .ClearFormatting .Style = ActiveDocument.Styles("Heading 3") Do While .Execute(FindText:="", Forward:=True, Format:=True) = True .Parent.Delete Loop End With End Sub |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Delete specific text
|
Jackson | Word VBA | 16 | 12-06-2019 08:24 PM |
Macro to change specific text styles
|
ljd108 | Word VBA | 3 | 10-22-2014 03:19 PM |
Delete specific mass text on document
|
JadeRisley | Word | 4 | 07-17-2013 11:11 PM |
Using macro to delete styles
|
fogharty | Word | 1 | 10-10-2011 03:42 PM |
Need help extracting specific text from one doument to another with macro/VBA.
|
zsmithku | Word | 1 | 04-15-2011 03:46 PM |