+ Reply to Thread
Results 1 to 3 of 3

Copy data from a worksheet

  1. #1
    Registered User
    Join Date
    06-10-2005
    Posts
    8

    Copy data from a worksheet

    Hi, I have two worksheets in my workbook, im calling the first ‘master’ and he second ‘input’ basically the master is a list of important invoices which have to be correct,. The input sheet is design to be a holding sheet for the date being inputted, so it can be checked before being added to the bottom of the master list. This is done weekly and there are normally between 5 – 20 rows.

    Would I need to uses some kind of macro to select all the rows and columns to then be copied to the next free row at the bottom of the master list?

    Thanks in advance.

    Clare

  2. #2
    Tom Ogilvy
    Guest

    Re: Copy data from a worksheet

    sub copyrows()
    Dim rng as Range, rng1 as Range
    with worksheets("Inputs")
    set rng = .Range(.Cells(2,1),.Cells(rows.count,1).End(xlup))
    End With
    with Worksheets("Master")
    set rng1 = .Cells(rows.count,1).End(xlup)(2)
    End with
    rng.EntireRow.copy Destination:=rng1
    End Sub

    --
    Regards,
    Tom Ogilvy


    "clarefoxly" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hi, I have two worksheets in my workbook, im calling the first 'master'
    > and he second 'input' basically the master is a list of important
    > invoices which have to be correct,. The input sheet is design to be a
    > holding sheet for the date being inputted, so it can be checked before
    > being added to the bottom of the master list. This is done weekly and
    > there are normally between 5 - 20 rows.
    >
    > Would I need to uses some kind of macro to select all the rows and
    > columns to then be copied to the next free row at the bottom of the
    > master list?
    >
    > Thanks in advance.
    >
    > Clare
    >
    >
    > --
    > clarefoxly
    > ------------------------------------------------------------------------
    > clarefoxly's Profile:

    http://www.excelforum.com/member.php...o&userid=24183
    > View this thread: http://www.excelforum.com/showthread...hreadid=384485
    >




  3. #3
    Registered User
    Join Date
    06-10-2005
    Posts
    8
    thank you Tom, was most helpful!

    Clare

+ 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