![]() |
#14
|
||||
|
||||
![]()
Hello Paul,
thank you so much for helping me again for the zillionth time ![]() I run the code and here is what I get ![]() Code:
Sub PaulDemo() Application.ScreenUpdating = False Dim StrSty As String, StrRep As String, i As Long StrSty = " Strong, Heading 1" StrRep = "Placeholder1 ^& Placeholder2,Heading 1 ^& Heading2" With ActiveDocument.Range.Find .ClearFormatting .Replacement.ClearFormatting .Forward = True .Format = True .Wrap = wdFindContinue .MatchWildcards = True For i = 0 To UBound(Split(StrSty, ",")) .Style = Split(StrSty, ",")(i) .Replacement.Text = Split(StrRep, ",")(i) .Execute Replace:=wdReplaceAll Next End With Application.ScreenUpdating = True End Sub forever grateful ![]() J |
Tags |
apply style, case |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Apply styles in word table | 1van | Word VBA | 2 | 11-17-2015 11:05 AM |
![]() |
jc491 | Word VBA | 10 | 11-04-2015 04:02 PM |
Question about Case statement | Jennifer Murphy | Word VBA | 1 | 01-05-2013 02:30 PM |
Paragraph space before - can styles apply it intelligently? | timpani | Word | 7 | 10-23-2012 04:08 PM |
FInd recurring words in Word 2003 | NJ007 | Word | 4 | 01-25-2010 03:11 PM |