J
Joanne
Hello, I wrote the following code to replace any instance of a semi colon and
one or more spaces following, but it doesn't seem to do anything. No errors,
just no result. Any ideas why this doesn't work?
Thanks very much for any help you can provide.
Sub GetSemis()
Set rng = ActiveDocument.Range
With rng.Find
.ClearFormatting
..Forward = True
.Wrap = wdFindContinue
.Text = (";& Chr(32){1,}")
With .Replacement
.ClearFormatting
.Text = "Hello"
End With
.Execute Replace:=wdReplaceAll
End With
End Sub
one or more spaces following, but it doesn't seem to do anything. No errors,
just no result. Any ideas why this doesn't work?
Thanks very much for any help you can provide.
Sub GetSemis()
Set rng = ActiveDocument.Range
With rng.Find
.ClearFormatting
..Forward = True
.Wrap = wdFindContinue
.Text = (";& Chr(32){1,}")
With .Replacement
.ClearFormatting
.Text = "Hello"
End With
.Execute Replace:=wdReplaceAll
End With
End Sub