westicle47
Programmer
I'm trying to check the first character of each cell in a given range. I've tried declaring the variable 'z' as a range but I get the error message "Object required".
Any ideas?
Any ideas?
Code:
'Insert the DivisionTypes
DivisionTypeRange = Range("B" & CurrentCellRow - ItemCount, "B" & CurrentCellRow - 1)
For Each z In DivisionTypeRange
If z.characters(1, 1) = "T" Then
DivisionTypes = DivisionTypes + 1
End If
Next
Cells(CurrentCellRow, 2) = DivisionTypes