1) How to get cell color using Excel macro? I could not get this function to work:
Sub BGCol(MRow As Integer, MCol As Integer) bgColor = Cells(MRow, MCol).Interior.ColorIndex End Sub
2) In cell x, y I want to have the following formula:
=BGCol(x,4)
So how do I get the current row index?
Caner source share