View Single Post
 
Old 04-24-2018, 06:03 AM
Ktulu Ktulu is offline Windows 7 32bit Office 2007
Novice
 
Join Date: Apr 2018
Posts: 6
Ktulu is on a distinguished road
Default Underline particular parts of words in macro

Hi guys. VBA newbie here. I use word macros to translate text from Russian to English. I am trying to underline 'TS' of TSIATIM but the macro underlines only the first word.
I don't have the code with me now but I recorded it as below...
Ctrl + home
Find TSIATIM
Press left arrow key one time
Press shift + right arrow key two times
Press ctrl + u
Press ctrl + right arrow key

I put this code in a loop but sometimes underlines from TS are removed... I think the loop should stop at the last occurrence of TSIATIM. But I don't know how to write this code. I don't have any programming background.

I would greatly appreciate any help. Thank you!
Reply With Quote