This is the code I'm using. Nothing complicated...
Now the macro crashes at:
I have absolutely no error report and have tried to set all of the cells in the toCells range individually with the same result. If any of you can help it would be great!
Code:
Public Function setRangeColor(fromCellAddress As String, toCells As Range)
Dim fromCell As Range
Set fromCell = Range(fromCellAddress)
toCells.Interior.ColorIndex = fromCell.Interior.ColorIndex
setRowColor = fromCell.Interior.ColorIndex
End Function
Now the macro crashes at:
Code:
toCells.Interior.ColorIndex = fromCell.Interior.ColorIndex
I have absolutely no error report and have tried to set all of the cells in the toCells range individually with the same result. If any of you can help it would be great!