Update cell, automatically copy row to a separate sheet

后端 未结 2 1723
误落风尘
误落风尘 2021-01-25 23:38

I have a worksheet comprising of two columns (A and B) ... the first of which is just a name, the second is a number.

If I make an edit to a number in column B, I want E

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-26 00:03

    Here is some additional code to check the row number, as per the above answer and comments.

    Dim row_num As Long
    row_num = Cells(Rows.Count, "B").End(xlUp).Row
    If row_num > 1 then row_num = row_num + 1 'Add 1 only when row number doesn't equal to 1, otherwise - 1.
    

提交回复
热议问题