用什么参数删除最后/一个特定的行?
我试图删除Excel电子表格的最后一行,但我不知道要放入rows.delete命令的参数的格式。 它不断给我一个错误。
LastRow = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious) Rows("LastRow").Delete 'error type mismatch
任何对rows.delete的参数的build议?
尝试这个:
Range("a65536").End(xlUp).Select Selection.EntireRow.Delete
LastRow.EntireRow.Delete Shift:=xlShiftUp