Dim xlapp As Excel.Application Dim xlwork As Excel.Workbook Dim xlsheet As Excel.Worksheet</span>
一、实例化对象:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Set xlapp = New Excel.Application Set xlwork = xlapp.Workbooks.Open(path) //打开工作薄路径 Set xlsheet = xlapp.Worksheets(1) //激活工作表 xlsheet.Range("A1").Select //选择参考点