I wanted to create a string that is the result of concatenating the character "A" to the last 3 characters of an existing string "JKLXYZ". In this string the "Y" is blue, the rest is automatic colour. The result to obtain is "AXYZ" with the "Y" still in blue.
I wanted to write :
Dim myString as String
myString = "A" & right(myString,3)
Two questions I would appreciate help with :
- How do I get the original string from the Word document into the myString variable while keeping its formatting = the "Y" in blue ?
- Assuming that I have been able to get into myString the original string with the "Y" in blue, how do I avoid the concatenation and/or the RIGHT function to destroy the format (the "Y" should still be in blue)
Thanks very much.