A
AlfD
Dave:
Good.
Final two checks. If these don't show up the problem, send me a copy o
the workbook. (Probably should have done this a while ago, but isn'
hindsight wonderful?)
First: hover your cursor over the variable r anywhere it occurs in th
script. Does it report 100? (You said there were 100 lines.) Did yo
change the 1000 to 100 in the For r=100 to 2 step -1?
Second: does your code match the following precisely?
Private Sub CommandButton1_Click()
Application.ScreenUpdating = True
Dim r As Integer
Dim s As Variant
For r = 100 To 2 Step -1
s = Range("#" & r).Value
If IsNumeric(s) Then
If s > 3 Then Rows(r - 1).Delete
End If
Next r
End Sub
where # represents the letter of the column with the numbers generate
by Subtotal.
If all is well in these terms and it still doesn't work, send it an
I'll see what I can find under the bonnet.
Al
Good.
Final two checks. If these don't show up the problem, send me a copy o
the workbook. (Probably should have done this a while ago, but isn'
hindsight wonderful?)
First: hover your cursor over the variable r anywhere it occurs in th
script. Does it report 100? (You said there were 100 lines.) Did yo
change the 1000 to 100 in the For r=100 to 2 step -1?
Second: does your code match the following precisely?
Private Sub CommandButton1_Click()
Application.ScreenUpdating = True
Dim r As Integer
Dim s As Variant
For r = 100 To 2 Step -1
s = Range("#" & r).Value
If IsNumeric(s) Then
If s > 3 Then Rows(r - 1).Delete
End If
Next r
End Sub
where # represents the letter of the column with the numbers generate
by Subtotal.
If all is well in these terms and it still doesn't work, send it an
I'll see what I can find under the bonnet.
Al