我收到了这个错误
runtime error 1004 in VB "method cells of object global_failed"
这些是我的代码:
Set oXL = EDOffice1.GetApplication()
Dim oWB As Excel.Workbook
Set oWB = EDOffice1.ActiveDocument()
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range
Dim SUM As Long
Set oSheet = oWB.ActiveSheet
Range("F1").Formula = "=SUM(" & Range(Cells(2, 2), Cells(25, 2)).Address(False, False) & ")"
请帮忙。