0
错误出现在end sub之前的行上,选择最后一行计算的范围的正确方法是什么?1004应用程序定义的或对象定义的错误
Sub My_Script()
Dim LastRow As Long
With ActiveSheet
LastRow = .Cells(.Rows.Count, "D").End(xlUp).Row
End With
ActiveSheet.Range(Cells(LastRow, Columns("D:AH"))).Select
End Sub