K
kiln
Using code like the following, I want the replacement text to start with
"cc:" however word formats as "Cc:", how can I get around this?
With ActiveDocument.Content.Find
.MatchWholeWord = True
.Replacement.ClearFormatting
.Execute FindText:="CCPhysicians", ReplaceWith:=LCase("cc: ") _
& pstrCCPhysicians, Replace:=wdReplaceAll
End With
A secondary question is if pstrCCPhysicians is a zero length string, I
need to remove the placeholder text "CCPhysicians" in the doc as well as
it's line. I think word would regard the placeholder text
"CCPhysicians" as a paragraph, it's on it's own line...the IF part I
understand but how pull out that text/paragraph without leaving a blank
line.
"cc:" however word formats as "Cc:", how can I get around this?
With ActiveDocument.Content.Find
.MatchWholeWord = True
.Replacement.ClearFormatting
.Execute FindText:="CCPhysicians", ReplaceWith:=LCase("cc: ") _
& pstrCCPhysicians, Replace:=wdReplaceAll
End With
A secondary question is if pstrCCPhysicians is a zero length string, I
need to remove the placeholder text "CCPhysicians" in the doc as well as
it's line. I think word would regard the placeholder text
"CCPhysicians" as a paragraph, it's on it's own line...the IF part I
understand but how pull out that text/paragraph without leaving a blank
line.