AshikHusein
Registered User.
- Local time
- Today, 03:16
- Joined
- Feb 7, 2003
- Messages
- 147
I am trying to get the color index number of an edge of a cell. So for example, for the cell B2 the code is
color_index = Range("B2").Borders(XlEdgeTop).ColorIndex
msgbox(color_index)
This returns -4142. But if I change the range to say A1 (which is a cell without a border), it still returns -4142
Am I using the correct VBA code for this? Thanks
color_index = Range("B2").Borders(XlEdgeTop).ColorIndex
msgbox(color_index)
This returns -4142. But if I change the range to say A1 (which is a cell without a border), it still returns -4142
Am I using the correct VBA code for this? Thanks