Loop through each row of a range in Excel

前端 未结 4 1836
闹比i
闹比i 2020-11-28 19:01

This is one of those things that I\'m sure there\'s a built-in function for (and I may well have been told it in the past), but I\'m scratching my head to remember it.

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 19:25

    Dim a As Range, b As Range
    
    Set a = Selection
    
    For Each b In a.Rows
        MsgBox b.Address
    Next
    

提交回复
热议问题