Hi!
I identified the problem, at least in my document the ".Font.Underline" property does not works with boolean true/false values, instead, it should need one of wdUnderline enumeration values.
The document have two underline types , value 1 = wdUnderlineSingle and 2 wdUnderlineWords, using two steps (with 1 or 2 instead of true) it works fine.
Now I need a way to translate this to the code above.
Thanks all for helping.
__________________
Backup your original file before doing any modification.
Last edited by eduzs; 07-27-2020 at 04:06 PM.
|