Home > Software engineering >  For help: the ball great spirit guide - how to use VBA to realize a specific string, and stores it i
For help: the ball great spirit guide - how to use VBA to realize a specific string, and stores it i

Time:09-16

For example, 1) define array arr (0 To 9)
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 problem

CodePudding 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:

reference crispy big ice cream on the second floor 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

A great god, and do you like this is printed text, but how to assign values to the corresponding text in the array to write
  •  Tags:  
  • VBA
  • Related