excel - Delete blank rows using Macro, after Row x -


I found this macro on another post:

  sub-del.bank rows () column ("A: A"). Choose. Specialcells (xlCellTypeBlanks). Select the selection. Enterro.downloaded  

This can be modified so that it removes only rows after the line row (I'm currently working on line 14 spreadsheets)?

Thank you!

This is quite straightforward.

  rows (x & amp; ":" & amp; y) Interval Delete  

Just swap the x and y for the rows you want.

On the one hand, it is best to avoid unnecessary selection of boundaries because it only slows things down. At any time you select a category, with the selection Do something, you can perform that task directly on that range instead.

Edit: Re-read the question - so try it:

  Range ("A14: A" and Sale Special Call (xlCellTypeLastCell) .ro.) Special Kael (XLcil Type Bals) Interstate Delete  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -