简体   繁体   中英

Macro to delete last row in table

I have a table in Excel filled with data.

Is there any way to create a macro that deletes the last row in the table and automatically updates the new table range to NOT include that row?

Seems this suited:

select a cell within it and run Selection.End(xlDown).Delete Shift:=xlUp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM