ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Output color to a text (rtf) file (https://www.excelbanter.com/excel-programming/317338-output-color-text-rtf-file.html)

Wild Bill[_3_]

Output color to a text (rtf) file
 
I have a macro that imports every line in a text file, replaces certain
key words, then exports the line to a different text file. I would like
the word I replace to show up in color in the output file. I have
already renamed my files to use the rtf file extension. I have also
changed the font color for the cell's value being used to replace text
in the string. The replacement is being made, but the font properties
are lost.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

NickHK

Output color to a text (rtf) file
 
Bill,
How are you saving as RTF as Excel does not have that option ?

NickHK

"Wild Bill" wrote in message
...
I have a macro that imports every line in a text file, replaces certain
key words, then exports the line to a different text file. I would like
the word I replace to show up in color in the output file. I have
already renamed my files to use the rtf file extension. I have also
changed the font color for the cell's value being used to replace text
in the string. The replacement is being made, but the font properties
are lost.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!




Wild Bill[_3_]

Output color to a text (rtf) file
 
I name it with a .rtf extension.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


All times are GMT +1. The time now is 05:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com