Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can someone please help me with VB code for the following process:
I have a list of items in column A (a database query linked to Access table). The items are highlighted in different colors by the end-user. When I refresh the database query the next day, the colors move around or dissapear because new items get added to the list. I added a vb function and call it in a hidden column B to display the color index of cell A. If OfText = True Then CellColorIndex = InRange(1, 1).Font.ColorIndex Else CellColorIndex = InRange(1, 1).Interior.ColorIndex End If So, for example, cell A2 is highlighted in yellow, thus cell B2 displays number "6". How can I create a vb code with a loop to go through the rows and highlight the rows based on the value in column B? Hopefully this makes sense. Thank you in advance! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
highlight subtotal rows with a fill color | Excel Worksheet Functions | |||
Color Index Code, is there any thing like that? | New Users to Excel | |||
Should be able to color code or highlight Excel worksheet tabs. | Excel Worksheet Functions | |||
Range based on interior color index? | Excel Programming | |||
excel: How can I color code rows based on a value in a cell? | Excel Discussion (Misc queries) |