cfdh_edmundo
Board Regular
- Joined
- Nov 9, 2005
- Messages
- 133
Hi,
I've got a very basic if statement in VBA that color codes cells and writes text in an adjacent cell when conditions are met. The code is as follows and works exactly as I need:
What I would like to do is, in addition to the above, put Cells(rowCount, 15).Value into a one dimensional array if the condition is met. I havent yet declared the array.
Any help would be great.
Many thanks,
Chris
I've got a very basic if statement in VBA that color codes cells and writes text in an adjacent cell when conditions are met. The code is as follows and works exactly as I need:
Code:
If Cells(rowCount, 15).Value = Cells(rowCount - 1, 15).Value And Cells(rowCount, 16).Value <> Cells(rowCount - 1, 16).Value Then
Cells(rowCount, 17).Value = "Flagging Point"
Cells(rowCount, 15).Interior.ColorIndex = 36
Cells(rowCount, 16).Interior.ColorIndex = 36
End If
What I would like to do is, in addition to the above, put Cells(rowCount, 15).Value into a one dimensional array if the condition is met. I havent yet declared the array.
Any help would be great.
Many thanks,
Chris