L
Laura
hi! (and sorry for my low level of english)
i'm trying to compare 2 characters with a determined pattern
the pattern is: "every letter follow followed of every number"
i'm trying to do it with this expresion:
' i select the 2 character to compare
Selection.MoveRight Unit:=wdCharacter, Count:=2, Extend:=wdExtend
If StrComp(Selection.Text, "^$^#", vbTextCompare) Then
' ---
Else
' ---
End If
but the funtion "strComp" doesn´t returns the expected value (always returns
'1')
anybody can help me please??
i'm trying to compare 2 characters with a determined pattern
the pattern is: "every letter follow followed of every number"
i'm trying to do it with this expresion:
' i select the 2 character to compare
Selection.MoveRight Unit:=wdCharacter, Count:=2, Extend:=wdExtend
If StrComp(Selection.Text, "^$^#", vbTextCompare) Then
' ---
Else
' ---
End If
but the funtion "strComp" doesn´t returns the expected value (always returns
'1')
anybody can help me please??