Find the last not empty row in a range of cells holding a formula

后端 未结 4 1538
轮回少年
轮回少年 2021-01-12 03:11

How can I find the last row in a range of cells that hold a formula, where the result of the formula is an actual value and not empty?

Say in a simplified way that

4条回答
  •  一个人的身影
    2021-01-12 03:45

    Function returnLastRow()
        With ActiveSheet.UsedRange
        returnLastRow = .Find("*", , xlValues, , xlByRows, xlPrevious).Row
        End With
    End Function
    

提交回复
热议问题