答案 0 :(得分:-1)
以下应执行您期望的操作:
Sub foo()
Dim ws As Worksheet: Set ws = ThisWorkbook.Worksheets("Sheet1")
'declare and set the worksheet you are working with, amend as required
LastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row
'get the last row with data on column A
ws.Range("E2").AutoFill Destination:=ws.Range("E2:E" & LastRow)
'fill the cells until the last row
End Sub