PC Review


Reply
Thread Tools Rate Thread

Copy data from one file sheet into another

 
 
Anna
Guest
Posts: n/a
 
      19th Dec 2006
Hi: Can any one please tell me how to i copy data from one file sheet
into another file sheet?

Thanks.

 
Reply With Quote
 
 
 
 
Nick Hodge
Guest
Posts: n/a
 
      19th Dec 2006
Anna

Do you mean another workbook, or another worksheet? Below is the answer to
both, bearing in mind the named references of worksheets and workbooks

Sub CopyToAnotherSheet()
Worksheets("Sheet1").Range("A1").Copy
Destination:=Worksheets("Sheet2").Range("A1")
End Sub

Sub CopyToAnotherWorkbook()
Dim wb1 As Workbook
Dim wb2 As Workbook
Set wb1 = ActiveWorkbook
Set wb2 = Workbooks("Book2")
wb1.Worksheets("Sheet1").Range("A1").Copy
Destination:=wb2.Worksheets("Sheet2").Range("A1")
End Sub



--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(E-Mail Removed)DTHIS
www.nickhodge.co.uk


"Anna" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi: Can any one please tell me how to i copy data from one file sheet
> into another file sheet?
>
> Thanks.
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy rows from one Data sheet to another sheet based on cell conte John McKeon Microsoft Excel Misc 2 15th May 2010 06:49 AM
Auto copy cell data from source sheet to another wrkbook sheet IVLUTA Microsoft Excel Programming 2 2nd Jun 2009 05:07 PM
copy data of two cells from Sheet 2 into one cell in Sheet 1 cahabbinga Microsoft Excel Worksheet Functions 6 30th Jan 2008 01:00 PM
How can i copy data from a tabbed working sheet to a summary sheet =?Utf-8?B?U3RlcGhlbkY=?= Microsoft Excel Misc 1 15th Mar 2007 03:40 PM
how to copy a cell with formula from sheet 1 (data is all vertical) into sheet 2 parag Microsoft Excel Worksheet Functions 3 15th Jun 2006 10:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:07 AM.