I'm trying to write a macro that cycles through each cell in a range. I've done this before so I'm not sure why this isn't working? I was getting a type mismatch error on the cell.value line, tried cell.text and got null. Added the Msgbox and it returns the address for the entire range, not just a singular cell in the range. What am I missing?
Code:
Sub Create_List ()
Dim cell as Range
For Each cell in RedList.Columns(1) 'This is further defined in my project, trying to simplify here.
Msgbox cell.Address
If cell.Value = "2" Then
'code if true
End If
Next Cell
End Sub
Last edited: