VBA to fill formula down until last row in empty column

前端 未结 1 760
忘了有多久
忘了有多久 2021-01-27 07:48

I have a report with a row count that changes daily. I need to autofill column C with a formula down to the last row of column B (columns A and B have different row counts, if t

相关标签:
1条回答
  • 2021-01-27 08:05

    let C2 Autofill the column C until the last populated cell in column B:

    With Sheets("Report")
      .Range("C2").AutoFill .Range("C2:C" & .Cells(.Rows.count, "B").End(xlUp).row)
    End With
    
    0 讨论(0)
提交回复
热议问题