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 data from a specific range to another sheet


i have 2 work sheet, i need to copy the data from a specific range from
one work sheet to another sheet..
anyone have any idea how to do that?


--
new_to_vba
------------------------------------------------------------------------
new_to_vba's Profile: http://www.excelforum.com/member.php...o&userid=30131
View this thread: http://www.excelforum.com/showthread...hreadid=498589

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy data from a specific range to another sheet


Hi,

Below are the code u can have a try.
Sheet2 will work as a source file for u to copy.
Sheet1 is the destination.

This code will copy data from column A, range A1 till A10 to sheet 1.


Sub Copy()

Worksheets("Sheet2").Range("A1:A10").Copy
ActiveSheet.Paste
Destination:=Worksheets("Sheet1").Range("A1:A10")
Application.ScreenUpdating = True

End Sub


Regards,
Sharon


--
sharon2006
------------------------------------------------------------------------
sharon2006's Profile: http://www.excelforum.com/member.php...o&userid=30173
View this thread: http://www.excelforum.com/showthread...hreadid=498589

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy data from a specific range to another sheet


hi..thanks sharon for your help..
how to modify the codes to copy a few rows to anoher worksheet

--
new_to_vb
-----------------------------------------------------------------------
new_to_vba's Profile: http://www.excelforum.com/member.php...fo&userid=3013
View this thread: http://www.excelforum.com/showthread.php?threadid=49858

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy data from a specific range to another sheet


Halo..

U can just repeat the code only like the following example.:)

Sub Copy1()

Worksheets("Sheet2").Range("A1:A10").Copy
ActiveSheet.Paste
Destination:=Worksheets("Sheet1").Range("A1:A10")


Worksheets("Sheet2").Range("C1:C10").Copy
ActiveSheet.Paste
Destination:=Worksheets("Sheet1").Range("C1:C10")


End Sub



or another way is write the formula into the sheet1( Destination of the
data) for auto copying the data

=SHEET2!A1


I have attach the file, u can have a look!

Regards,
Sharon:)


+-------------------------------------------------------------------+
|Filename: Book1.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4190 |
+-------------------------------------------------------------------+

--
sharon2006
------------------------------------------------------------------------
sharon2006's Profile: http://www.excelforum.com/member.php...o&userid=30173
View this thread: http://www.excelforum.com/showthread...hreadid=498589

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy data from a specific range to another sheet


thanks again sharon
( =


--
new_to_vba
------------------------------------------------------------------------
new_to_vba's Profile: http://www.excelforum.com/member.php...o&userid=30131
View this thread: http://www.excelforum.com/showthread...hreadid=498589

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
Copy specific data form sheets into master sheet Eva Excel Worksheet Functions 6 November 20th 09 06:06 PM
How to copy records containing a specific date range to new sheet? Chrys Excel Worksheet Functions 1 January 30th 06 08:19 PM
Selecting Specific Data to copy/move to a new sheet ksp Excel Programming 0 December 6th 05 07:32 AM
Copy and pasting specific sheet data to a master worksheet simora Excel Programming 4 May 9th 05 05:30 AM
How copy specific range from one sheet to another using a Macro (V Iván Excel Programming 1 November 12th 04 09:13 PM


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