Hi, This seems to be the correct syntax but it doesn't work, this is the first loop i have ever wrote so any help is appreciated. When I run it I get a "method of range" failed message...
Dim A As String
Dim Q As String
Dim X As Variant
Dim Y As Variant
Dim Z As Variant
A = "A"
Q = "Q"
X = "O"
Y = 1
A = A & Y
Q = Q & Y
Z = X & Y
Do While Y <= 606
If Range(Z) = 0 Then
Range(A & ":" & Q).Select
Range(Q).Activate
Selection.Delete Shift:=xlUp
End If
Range(Z).Select
Y = Y + 1
Loop
Dim A As String
Dim Q As String
Dim X As Variant
Dim Y As Variant
Dim Z As Variant
A = "A"
Q = "Q"
X = "O"
Y = 1
A = A & Y
Q = Q & Y
Z = X & Y
Do While Y <= 606
If Range(Z) = 0 Then
Range(A & ":" & Q).Select
Range(Q).Activate
Selection.Delete Shift:=xlUp
End If
Range(Z).Select
Y = Y + 1
Loop