5,173
社区成员
发帖
与我相关
我的任务
分享Sub CreateExcelApplication()
GStrFilePath = "1.xls"
Set ex = CreateObject("Excel.Application")
ex.Visible = True
Set WbSource = ex.Workbooks.Open(GStrFilePath, True, True)
WbSource.Worksheets(3).Activate
Set ws = ex.ActiveSheet
With ws
Set RngTemp = .Range(.Cells(1, 1), .Cells(3, 3))
End With
ex.Quit
End Sub