That is true. Thanks for pointing out the error.
> Do you really mean [A-z]? -- that's not the same as [A-Za-z] ... [A-z] also
> includes the characters between Z and a, namely [\]^_`
[quoted text clipped - 27 lines]
> >
> > anybody can help me please??
Laura,
Another thing below.
> That is true. Thanks for pointing out the error.
>
[quoted text clipped - 19 lines]
>>> Selection.MoveRight Unit:=wdCharacter, Count:=2, Extend:=wdExtend
>>> If StrComp(Selection.Text, "^$^#", vbTextCompare) Then
And from what I read in VBA Help, StrComp() can't use wildcards or Regular
Expression patterns. So you were always comparing to the literal string
^$^#.
>>> ' ---
>>> Else
[quoted text clipped - 6 lines]
>>>
>>> anybody can help me please??

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID