Rolly_Sefu
Board Regular
- Joined
- Oct 25, 2013
- Messages
- 149
Hello,
I have created a function that return the cell color
This works perfectly.
I need to convert this to return a range of numbers ex: "{1;2;3;4}" ( its a if you select a range and hit F9 ), in order to apply the formula: "=Max((GetFillColor(A1:A5)=15)*ROW(A1:A5))" in order the get the last specific colored cell.
Anyone have an idea ?
Thank you.
I have created a function that return the cell color
VBA Code:
Function GetFillColor(WorkRng As Range)
GetFillColor= WorkRng.Interior.ColorIndex
End Function
This works perfectly.
I need to convert this to return a range of numbers ex: "{1;2;3;4}" ( its a if you select a range and hit F9 ), in order to apply the formula: "=Max((GetFillColor(A1:A5)=15)*ROW(A1:A5))" in order the get the last specific colored cell.
Anyone have an idea ?
Thank you.