davidnew3754
New Member
- Joined
- May 14, 2010
- Messages
- 16
I'm trying to use the for each next loop to test whether the value of a cell in a range = "Y". If it does I want it to run firstpart however regardless of whether each cell = "Y" or not it runs firstpart.
Can anyone help me on this?
Many thanks
David
Can anyone help me on this?
Code:
Sub Entireprocess()
Dim autrnl As Range
Set autrnl = Range("P100:P200")
For Each cell In autrnl
If cell.Value = "Y" Then
firstpart
End If
Next cell
Many thanks
David