Hi,
Document.Range.ReplaceText "\d*e-\d*" , "0", vpMatchRegExp
Document.Range.ReplaceText "\d\.\d*e-\d*" , "0", vpMatchRegExp
The above two lines should be in reversed order.
This also solved the issue below. When I put that line above the other two it works ok.
I also tried the next one but doesn't work
Document.Range.ReplaceText "-\d*e-\d*" , "0", vpMatchRegExp
The "-" at the beginning does not have any influence
it still returns -0 instead of 0, why?