Article ID: 114000
Article Last Modified on 10/29/2003
oXLSheet.Range("A1").Value = "Price"
Depending on how you access a collection, there will also be implicit
IDispatch calls. For example, if you access a collection without the Item
method, it is implicitly called.
oXLApp.Workbooks(1).Sheets(1).Range("A1").Value = "Price"
Sub Command1_Click ()
Dim ExcelSheet As Object
Dim StartCell As Object
Dim EndCell As Object
Dim I as Integer
Set ExcelSheet = CreateObject("excel.sheet.5")
' The following For Next loop makes 4000 IDispatch calls:
For i = 1 to 1000
Set StartCell=ExcelSheet.Cells(i,1)
Set EndCell=ExcelSheet.Cells(i,5)
ExcelSheet.Range(StartCell,EndCell).FormulaArray = "=3"
Next
ExcelSheet.Application.Quit
Set ExcelSheet = Nothing
End Sub
Additional query words: buglist3.00 3.00 GPF MemLeak fixlist4.00 W_VBApp
Keywords: kbbug kbfix KB114000