Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
mix font attributes of text returned from cell formula
Say, for example I have worksheet formula =3*4&" ABC"
12 ABC displays in the cell The cell font color is formatted as black Is there a VBA way to have the displayed character "C" in red font for example? My guess is "no" I'm just hoping someone will suprise me Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
mix font attributes of text returned from cell formula
For a formula cell no.. or other wise
Range("B11").Characters(Start:=Len(Range("A1")), Length:=1).Font.ColorIndex = 3 If this post helps click Yes --------------- Jacob Skaria "David" wrote: Say, for example I have worksheet formula =3*4&" ABC" 12 ABC displays in the cell The cell font color is formatted as black Is there a VBA way to have the displayed character "C" in red font for example? My guess is "no" I'm just hoping someone will suprise me Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
mix font attributes of text returned from cell formula
Hi
If you need to retain the formula, the answer is no, but if the formula can be transformed to a 'value' with Copy/PasteSpecial, it can be done as below: Sub ColorLastLetter() ActiveCell.Copy ActiveCell.PasteSpecial xlPasteValues ActiveCell.Characters(Start:=Len(ActiveCell), Length:=1).Font.ColorIndex = 3 End Sub Regards, Per On 23 Sep., 20:05, David wrote: Say, for example I have worksheet formula =3*4&" ABC" 12 ABC displays in the cell The cell font color is formatted as black Is there a VBA way to have the displayed character "C" in red font for example? My guess is "no" I'm just hoping someone will suprise me Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to change Userform Textbox Font attributes | Excel Programming | |||
Changing the Font Size and attributes in a message box | Excel Programming | |||
Can I modify cell attributes (font,color etc.) based on function . | Excel Discussion (Misc queries) | |||
How do I change font attributes in a Concatenate statement? | Excel Worksheet Functions | |||
Font Attributes | Excel Worksheet Functions |