Dim rngCurrent As Excel.Range Set rngCurrent = Worksheets("yourSheetName").UsedRange MsgBox (rngCurrent.Rows.Count) ... 將物件變數 設定為參考單一儲存格 將物件變數設定為參考一組儲存格 ...
itgroup.blueshop.com.tw