Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default C# Excel Replace text in a range

Hi all! I am using C# to access Excel. I have the following situation.

I have a cell with the following text: "Some text {a} and another text
{b}"
I want to replace {a} and {b} with a specific string and this string
to be with a specific Font. I am using get_characters to change the
font only for these characters. But when I replace {b} and change the
font of its replacement, the other text font in the cell is set to
default (including the replacement of {a}). My question is how can I
workaround this problem? How can I replace {a} and {b} and change the
font of their replacement?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I replace a ' at the beginning of a text cell using Replace Hilde Excel Discussion (Misc queries) 4 September 10th 07 06:22 PM
C# Excel Replace text in a range [email protected] Excel Programming 0 January 31st 07 08:07 PM
Replace text with variable using VBA replace code? Mike[_112_] Excel Programming 2 November 9th 06 06:06 PM
replace a range of #'s e.g. 1.25 to 100 with text in excell Painter Excel Worksheet Functions 1 December 27th 05 08:36 PM
Excel replace text. xcao[_4_] Excel Programming 3 September 27th 04 02:54 PM


All times are GMT +1. The time now is 11:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"