返回列表 上一主題 發帖

篩選一問

回復 3# like_azure
  1. For Each theArea In rng.Areas
  2.         '遍歷各AREA的各列
  3.         For Each theRow In theArea.Rows
  4.             theRow.Select       '選定此列
  5.             MsgBox theRow.Cells(1).Address                  '顯示此列第1欄的位址
  6.             MsgBox theRow.Cells(theRow.Count).Address       '顯示此列最後1欄的位址
  7.         Next
  8.     Next
複製代碼

TOP

        靜思自在 : 犯錯出懺悔心,才能清淨無煩惱。
返回列表 上一主題