ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding new row(s) to end of worksheet (https://www.excelbanter.com/excel-programming/273583-adding-new-row-s-end-worksheet.html)

Mike Fenton

Adding new row(s) to end of worksheet
 
What is the code or is there a way to make a macro that
will go the first empty row and insert a new row (similar
to a fill) with the next data in sequence?

Bob Phillips[_5_]

Adding new row(s) to end of worksheet
 
Mike

cRows = Cells(Rows.Count,"A").End(xlUp).Row
Cells(crows+1,"A")=123
Cells(cRows+1,"B")="alpha"
etc.

This locks down column A for the last row, and then populates columns A, B,
etc of the next row.

That should give you the idea.

--

HTH

Bob Phillips

"Mike Fenton" wrote in message
...
What is the code or is there a way to make a macro that
will go the first empty row and insert a new row (similar
to a fill) with the next data in sequence?





All times are GMT +1. The time now is 10:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com