VBA: 快速清空Excel表格第5行及以后所有内容
Sub ClearRows()
Dim lastRow As Long
lastRow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
If lastRow >= 5 Then
Range('5:' & lastRow).ClearContents
End If
End Sub
原文地址: https://www.cveoy.top/t/topic/lKzL 著作权归作者所有。请勿转载和采集!