russellrichter
Board Regular
- Joined
- Mar 23, 2009
- Messages
- 63
I have a VBA module in which I need to add formatting to a number based on several criteria. (Excel 2003). If a record in the worksheet meets these criteria, the cell should be displayed as a right-facing triangle (U+25BA), the number and a left-facing triangle (U+25C4).
I am able to do this by copying the characters from the character map and pasting them into the custom number formatting dialog boxes in Excel. But, I can't seem to get that same effect in VBA using the Alt+[NumPad] method. Even when I record the custom formatting as a macro, the recorded macro does not set the format as it was recorded, but instead sets it to "? 0 ?".
So, is it possible in the Selection.NumberFormat command to set a format using these special characters?
Thanks for the help!
Russ
Houston
I am able to do this by copying the characters from the character map and pasting them into the custom number formatting dialog boxes in Excel. But, I can't seem to get that same effect in VBA using the Alt+[NumPad] method. Even when I record the custom formatting as a macro, the recorded macro does not set the format as it was recorded, but instead sets it to "? 0 ?".
So, is it possible in the Selection.NumberFormat command to set a format using these special characters?
Thanks for the help!
Russ
Houston