Sub FillDown() Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Dim xlRange As Excel.Range
' 创建Excel应用程序实例并获取活动工作簿和工作表 Set xlApp = New Excel.Application Set xlBook = xlApp.Workbooks.Open("path_to_your_excel_file.xlsx") Set xlSheet = xlBook.Worksheets("Sheet1")