#1   Report Post  
Robbo
 
Posts: n/a
Default Macro help!

I'm trying to write a macro that inserts a line of data from one part of the
sheet, to the bottom of a list. Is there a function for this?

There could potentially be over 1000 rows in the list, so I don't really
want to go down the 'IF' route!

Thanks
  #2   Report Post  
Pallet1210A
 
Posts: n/a
Default

if the list is contiguous, i.e. there are no breaks in the data or you can
identify a column with no spaces (nulls) in, you can quickly get to the
bottom using the selection.end command, move down one more line and paste the
data. Then return to your original data (trap the address of a cell in the
row using MyReturnCell = activecell.address before you go to the end of the
list then use range(MyReturnCell).select) and delete that row.

"Robbo" wrote:

I'm trying to write a macro that inserts a line of data from one part of the
sheet, to the bottom of a list. Is there a function for this?

There could potentially be over 1000 rows in the list, so I don't really
want to go down the 'IF' route!

Thanks

  #3   Report Post  
Robbo
 
Posts: n/a
Default

Thanks I'll try that.... How do I tell it to select the row underneath the end?

"Pallet1210A" wrote:

if the list is contiguous, i.e. there are no breaks in the data or you can
identify a column with no spaces (nulls) in, you can quickly get to the
bottom using the selection.end command, move down one more line and paste the
data. Then return to your original data (trap the address of a cell in the
row using MyReturnCell = activecell.address before you go to the end of the
list then use range(MyReturnCell).select) and delete that row.

"Robbo" wrote:

I'm trying to write a macro that inserts a line of data from one part of the
sheet, to the bottom of a list. Is there a function for this?

There could potentially be over 1000 rows in the list, so I don't really
want to go down the 'IF' route!

Thanks

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
macro with F9 Kenny Excel Discussion (Misc queries) 1 August 3rd 05 02:41 PM
Make Alignment options under format cells available as shortcut dforrest Excel Discussion (Misc queries) 1 July 14th 05 10:58 PM
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM


All times are GMT +1. The time now is 04:59 PM.

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"