About my job, my life...Welcome!
Dim xlsBook As Excel.Workbook '開啟Excel檔案 Set xlsBook = Workbooks.Open(".xls檔案位置")
Dim sheetName As String sheetName = xlsBook.Sheets(1).Name '取得Excel第一個活頁簿的名稱 Set xlsSheet = xlsBook.Worksheets(sheetName)
沒有留言:
張貼留言