Changing colorindex of a part of cell contents

villy

Active Member
Joined
May 15, 2011
Messages
489
Hi Gurus,

Pardon me for my ignorance..
Just want to know if it is possible to change colorindex only part of a cell contents.
Ex:
In spreadsheet, I can have more than one font color for my cell contents.
In VBA can I do that, how?

What I want:
I have a macro that generates a resulf from a formula (concatenate) that I need to have two different colorindex.

Please share with my curiosity.
Thanks in advance.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
One apply rich text (multiple formats in the same cell) to cells with constants, but if the cell holds a formula, the result is all in the same format.

The macro recorder can give you the syntax to format the Characters property of a range.
 
Upvote 0
Thanke Mike,

After I post this issue I came to realized to use a Macro Recorder. It is now working fine.
Thanks anyway
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,882
Members
452,948
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top