Thanks a lot for your help! Now the macro does its job correctly, but before closing it shows a message of the type "Object variable or variable of the With block not defined" and highlights the following lines of the code:
Quote:
If myChr Like "[,;.:]" _
And myChr.Next Like "[«‹›»" & Chr(39) & Chr(34) & Chr(146) & Chr(148) & "]" Then
|