+ Reply to Thread
Results 1 to 5 of 5

copy data from a specific range to another sheet

  1. #1
    Registered User
    Join Date
    01-05-2006
    Posts
    18

    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?

  2. #2
    Registered User
    Join Date
    01-05-2006
    Posts
    7

    RE: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

  3. #3
    Registered User
    Join Date
    01-05-2006
    Posts
    18
    hi..thanks sharon for your help..
    how to modify the codes to copy a few rows to anoher worksheet?

  4. #4
    Registered User
    Join Date
    01-05-2006
    Posts
    7

    RE: 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
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-05-2006
    Posts
    18
    thanks again sharon
    ( =

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1