#1   Report Post  
saziz
 
Posts: n/a
Default help with range copy


HI all,

This is what I am trying to do, look in range Column A in active sheet,
copy upto whatever range is filled down and paste in sheet 2. the code
below is copying only the last cell and pasting in sheet 2.


Range("A65536").End(xlUp).Copy _
Worksheets("sheet2").Range("a65536").End(xlUp)

Appreciate your help.
Thanks
Syed


--
saziz
------------------------------------------------------------------------
saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350
View this thread: http://www.excelforum.com/showthread...hreadid=471513

  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Syed

Try this

Sub test()
Range(Cells(1, 1), Cells(Rows.Count, 1).End(xlUp)).Copy _
Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp)(2)
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"saziz" wrote in message
...

HI all,

This is what I am trying to do, look in range Column A in active sheet,
copy upto whatever range is filled down and paste in sheet 2. the code
below is copying only the last cell and pasting in sheet 2.


Range("A65536").End(xlUp).Copy _
Worksheets("sheet2").Range("a65536").End(xlUp)

Appreciate your help.
Thanks
Syed


--
saziz
------------------------------------------------------------------------
saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350
View this thread: http://www.excelforum.com/showthread...hreadid=471513



  #3   Report Post  
saziz
 
Posts: n/a
Default


Thank you ron, it worked perfectly.
Is there a book I can buy to learn all these nitty gritty details of
the code.
Best regards
Syed


--
saziz
------------------------------------------------------------------------
saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350
View this thread: http://www.excelforum.com/showthread...hreadid=471513

  #4   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Syed

1) Read the newsgroups
You can use this add also
http://www.rondebruin.nl/Google.htm

2)Buy this book
http://www.amazon.com/exec/obidos/AS...485206-1685505

And next year
http://www.amazon.com/exec/obidos/AS...485206-1685505



--
Regards Ron de Bruin
http://www.rondebruin.nl


"saziz" wrote in message
...

Thank you ron, it worked perfectly.
Is there a book I can buy to learn all these nitty gritty details of
the code.
Best regards
Syed


--
saziz
------------------------------------------------------------------------
saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350
View this thread: http://www.excelforum.com/showthread...hreadid=471513



  #5   Report Post  
saziz
 
Posts: n/a
Default


Thank you Ron.
I will buy the book.
Syed


--
saziz
------------------------------------------------------------------------
saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350
View this thread: http://www.excelforum.com/showthread...hreadid=471513



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
reminder notifications in a column L Mieth Excel Discussion (Misc queries) 6 June 10th 05 11:00 AM
Reveal cell formats and extendable range in tool/statusbar/icon. Danny O'Hern ([email protected]) Excel Worksheet Functions 0 April 29th 05 01:16 PM
Copy cells into range of cells until cell change mdeanda Excel Worksheet Functions 1 April 22nd 05 08:41 PM
Can a formula check for a certain value in a range? Lee IT Excel Discussion (Misc queries) 3 April 8th 05 07:36 AM
Copy a range GrantM Excel Worksheet Functions 1 December 21st 04 09:59 AM


All times are GMT +1. The time now is 12:18 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"