Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy a range of cells (a row) to the bottom of a "list"

I am collecting cells from a worksheet into a row. Each time I run a macro I
want this row of cells to be copied
to the bottom of another range. This range is increasing in size as new rows
are added.

Whats the best way to programaticcally do this? I have tried to use to use
the End(xlDown)-method, but I wonder if there are better methods to do this?

Thanks

Torstein S. Johnsen


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default copy a range of cells (a row) to the bottom of a "list"

What's wrong with End(xldown)?

That is pretty standard.

Specific information might provide some additional suggestions. Where is
the range. Is is isolated. Does it always start in a certain location. Is
it always contiguous at least in one column (no completely empty row in the
range).

set rng = Range("Z21").CurrentRegion.Columns(1).Cells
Selection.Copy Destination:= rng.rows(rng.rows.count+1)


--
Regards,
Tom Ogilvy

"Torstein Johnsen" wrote in message
...
I am collecting cells from a worksheet into a row. Each time I run a macro

I
want this row of cells to be copied
to the bottom of another range. This range is increasing in size as new

rows
are added.

Whats the best way to programaticcally do this? I have tried to use to use
the End(xlDown)-method, but I wonder if there are better methods to do

this?

Thanks

Torstein S. Johnsen




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
Turn off "CALCULATE" on bottom of Excel worksheet. near "Ready" chrispal86 Excel Discussion (Misc queries) 2 February 2nd 10 08:36 PM
advanced filter dialog box, "List Range" list two ranges? Excel_Kiwi Excel Worksheet Functions 1 October 27th 08 06:11 PM
Array as a "named range" - formula ok in cells, but error as "named range" tskogstrom Excel Discussion (Misc queries) 11 December 28th 06 04:44 PM
"Create a drop-down list from a range of cells" DILNAVAS Excel Worksheet Functions 1 May 3rd 06 08:40 AM
Copy column range of "single word" cells with spaces to a single c nastech Excel Discussion (Misc queries) 3 February 15th 06 05:04 PM


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

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

About Us

"It's about Microsoft Excel"