2) using a wildcard search string "number 1 ~ 9" & amp;" Any Chinese characters "
Find specific character command
With the Selection. The find
The Text="[0-9] [127]! ^ - ^ 1"
. ClearFormatting
The Forward=True
The Wrap=wdFindContinue
. MatchWildcards=True
End With
Selection. The find. The Execute
So the question comes, how To find the specific assigned To a string array arr (0 To 9)? Such as online
CodePudding user response:
I don't know the Split function could solve your problemCodePudding user response:
With the Selection. The Find
The Text="[0-9] [127]! ^ - ^ 1"
. ClearFormatting
The Forward=True
The Wrap=wdFindContinue
. MatchWildcards=True
. Wrap make queries don't cycle=wdFindStop '
End With
Do
Selection. The Find. The Execute
If Selection. The Find. Found Then
The Debug. Print Selection. The Text
'here in the immediate window to print out the search string
'to the array of things yourself
The Else
The Exit Do
'to search for the last exit
End the If
DoEvents
Loop
CodePudding user response: