Wow! Now that worked!
Well maybe needs some fine tuning..
1) When there are 'Obs' and 'Justificativa' in the same paragraph, it only does the formatting for the first one. Then I would need to do find/replace again to format the second one. Is there a way to do it in only one step? (see attachaed files)
2) In the attached file PT_BEFORE, the code won´t work for the last 'Obs' (last line of the document). Can you see why?
Thanks!
|