Article ID: 113438
Article Last Modified on 1/8/2003
Sub Command1_Click ()
Dim X As object
Dim R As object
Dim Iterations As Integer
While True
Iterations = Iterations + 1
Debug.Print Iterations
Set X = CreateObject("Excel.Sheet.5")
' Enter the following two lines as one, single line:
Set R = X.Parent.Sheets(1).Range(X.Parent.Sheets(1).Cells(2, 2),
X.Parent.Sheets(1).Cells(52, 2))
Set R = Nothing
Set X = Nothing
Wend
End Sub
Sub Command1_Click ()
Dim X As object
Dim R As object
Dim Iterations As Integer
While True
Iterations = Iterations + 1
Debug.Print Iterations
Set X = CreateObject("Excel.Sheet.5")
' Enter the following two lines as one, single line:
Set R = X.Parent.Sheets(1).Range(X.Parent.Sheets(1).Cells(2, 2),
X.Parent.Sheets(1).Cells(52, 2))
' The next line quits the application for an Excel object
X.Application.Quit
Set R = Nothing
Set X = Nothing
Wend
End Sub
Additional query words: buglist3.00 GPF EXCEL 5.00 WINWORD 6.00 VBASIC 3.00 fixlist4.00
Keywords: kbbug kbfix KB113438