sashazaliz
New Member
- Joined
- Nov 9, 2009
- Messages
- 46
I'm trying to match the exact cell colors in a specific named range of cells to the adjacent cells 18 rows below. I thought the following code would certainly work but when I recalculate the worksheet the cells below don't change colors to match the ones above. What's wrong exactly? Please help!
Private Sub Worksheet_Calculate()
Dim cell As Range
For Each cell In Me.Range("color")
cell.Offset(18, 0).Interior.ColorIndex = _
cell.Interior.ColorIndex
Next
End Sub
Private Sub Worksheet_Calculate()
Dim cell As Range
For Each cell In Me.Range("color")
cell.Offset(18, 0).Interior.ColorIndex = _
cell.Interior.ColorIndex
Next
End Sub