C
Cissy
Greetings:
The following code I have stops when it hits a space. I need it to stop when
it reaches any character (or any digit). I tried the usual wildcards in the
code to replace the space with no luck.
With Selection
.HomeKey Unit:=wdStory
With .Find
.ClearFormatting
.Text = "^m"
.Forward = True
.Wrap = wdFindStop
Do While .Execute
With Selection
.MoveRight
.MoveEndUntil Cset:=" " 'right here is my problem
.Delete
End With
Loop
End With
Any ideas for a wildcard? Thank you
The following code I have stops when it hits a space. I need it to stop when
it reaches any character (or any digit). I tried the usual wildcards in the
code to replace the space with no luck.
With Selection
.HomeKey Unit:=wdStory
With .Find
.ClearFormatting
.Text = "^m"
.Forward = True
.Wrap = wdFindStop
Do While .Execute
With Selection
.MoveRight
.MoveEndUntil Cset:=" " 'right here is my problem
.Delete
End With
Loop
End With
Any ideas for a wildcard? Thank you