Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Highlighting part of a cell contents in Excel 2003
The following would change the 3rd and 4th characters of
a string to red font. If the characters are number data type, this code fails. Sub clrfnt() Sheets(1).Range("A1").Characters(3, 2) _ .Font.ColorIndex = 3 End Sub "Gregg" wrote: I have values in cells A1:A10 expressed thusly: A1= 23_47 A2= 37_9 etc.. I would like to write code that will highlight individual numbers in the cells A1:A10 that are greater than 32 and less than 101. In cell A1 "47" would be highlighted, in cell A2 "37" would be highlighted. Red can be the highlight color. Gregg |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2003 cell references - 32 refs - no more highlighting? | Excel Discussion (Misc queries) | |||
Looking Up Part Cell Contents | Excel Discussion (Misc queries) | |||
Combining Cell Contents (Part 2) | Excel Discussion (Misc queries) | |||
Further help on cell highlighting if change to contents | Excel Programming | |||
Delete part of cell contents | Excel Programming |