![]() |
#14
|
|||
|
|||
![]()
Hello I tried the below code but this is not working ie no text was deleted in my doc.
Could someone explain to me why? 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 Thanks in advance Mel |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Jackson | Word VBA | 16 | 12-06-2019 08:24 PM |
![]() |
ljd108 | Word VBA | 3 | 10-22-2014 03:19 PM |
![]() |
JadeRisley | Word | 4 | 07-17-2013 11:11 PM |
![]() |
fogharty | Word | 1 | 10-10-2011 03:42 PM |
![]() |
zsmithku | Word | 1 | 04-15-2011 03:46 PM |