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