I'm having a little trouble retaining formatting when replacing some text in a Word text box.
When I use this line I lose all the individual character formatting for the text range.
Box.TextFrame.TextRange = Replace(Box.TextFrame.TextRange.Text, "replace this text, "with this text")
Box.TextFrame.TextRange is a text box that has been formatted character by character. Picking up attributes like bold, italic, size, font, etc. from a text box inside CorelDraw. After all this is done certain words within the textbox have to be replaced. Is there another way to do this?
Thanks for any help. (I know this isn't an Excel question but the problem would be similar if I were going from Excel to Word instead of CorelDraw to Word.)
When I use this line I lose all the individual character formatting for the text range.
Box.TextFrame.TextRange = Replace(Box.TextFrame.TextRange.Text, "replace this text, "with this text")
Box.TextFrame.TextRange is a text box that has been formatted character by character. Picking up attributes like bold, italic, size, font, etc. from a text box inside CorelDraw. After all this is done certain words within the textbox have to be replaced. Is there another way to do this?
Thanks for any help. (I know this isn't an Excel question but the problem would be similar if I were going from Excel to Word instead of CorelDraw to Word.)