mmetzinger
Board Regular
- Joined
- Dec 30, 2010
- Messages
- 61
I am looking for a way to fill a collection with values only if the value in the next column is a 1. I currently have this code which works great but I don't know how to give it criteria like a "where" statement that checks the next columns value.
Any help?
Code:
Dim AllCells As Range
' The items are in A1:A20
Set AllCells = Range("A1:A20")
'Only input values if the value in column B is 0
Any help?