vba清空第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/xhx 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
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/xhx 著作权归作者所有。请勿转载和采集!