ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   C# Excel Replace text in a range (https://www.excelbanter.com/excel-programming/382335-c-excel-replace-text-range.html)

[email protected]

C# Excel Replace text in a range
 
Hi all! I am accessing Excel with c#. I have a cell with this text:
"Some text {a} with other text {b} and something else {c}". I want to
replace {a}, {b} an {c} with a specific string and this specific
string to be with a specific Font (ffor example). I am using
get_characters to set the font of these replacements, but when I
replace the last part ({c}) all style of the previous replacements is
gone. How to workaround this issue?



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

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