C
cparsons
My program went down with on error in the code. I fixed that error an
tried to re-run it. When I go to re-run the program I get a subscrip
out of range error when I try to open a worksheet that I know exists.
If I close the workbook and re-open it the subscript out of range erro
doesn't show up. Below is the code.
With Worksheets("ListBox Data").Range("A2")
workbook_row_cnt = Range(.Offset(0, 0)
.End(xlDown)).Rows.Count
For i = 0 To workbook_row_cnt - 1
If .Offset(i, 0) <> "" Then
sales_group_cnt = sales_group_cnt + 1
End If
Next i
End With
I am new to this but is it recommended that a worksheet be deactivate
and then activated before each use?
You help would be appreciated.
Thank
tried to re-run it. When I go to re-run the program I get a subscrip
out of range error when I try to open a worksheet that I know exists.
If I close the workbook and re-open it the subscript out of range erro
doesn't show up. Below is the code.
With Worksheets("ListBox Data").Range("A2")
workbook_row_cnt = Range(.Offset(0, 0)
.End(xlDown)).Rows.Count
For i = 0 To workbook_row_cnt - 1
If .Offset(i, 0) <> "" Then
sales_group_cnt = sales_group_cnt + 1
End If
Next i
End With
I am new to this but is it recommended that a worksheet be deactivate
and then activated before each use?
You help would be appreciated.
Thank