Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default 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?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with adding a worksheet beckster Setting up and Configuration of Excel 6 September 21st 07 12:58 AM
adding several worksheet cells onto a main worksheet oxicottin Excel Worksheet Functions 2 September 20th 06 08:07 PM
Adding Worksheet Lisa Excel Worksheet Functions 3 July 19th 06 05:01 PM
Adding worksheet tab names to the first worksheet adam Excel Discussion (Misc queries) 1 May 17th 06 02:07 AM
list worksheet macros/VBA without adding worksheet br549 Excel Discussion (Misc queries) 0 January 6th 06 10:17 PM


All times are GMT +1. The time now is 09:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"