+ Reply to Thread
Results 1 to 3 of 3

Copy Worksheet..Howe ??

  1. #1
    Anthony
    Guest

    Copy Worksheet..Howe ??

    Hi,

    Can anybody give the code to create a macro which will select the entire
    contents of worksheet1 (except the headers which are on cells A2:G2) and
    paste this onto the next available line on worksheet 2 ??

    Easy....uh !!!!!!

    thanks/regards
    Anthony

  2. #2
    Tom Ogilvy
    Guest

    Re: Copy Worksheet..Howe ??

    Possibly

    Sub Macro1()
    Dim rng as Range, rng1 as Range
    set rng = Application.UsedRange
    set rng1 = Range(Range("A3"),rng)
    rng1.copy Destination:=worksheets("sheet2").Range("A2")
    End sub

    --
    Regards,
    Tom Ogilvy

    "Anthony" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > Can anybody give the code to create a macro which will select the entire
    > contents of worksheet1 (except the headers which are on cells A2:G2) and
    > paste this onto the next available line on worksheet 2 ??
    >
    > Easy....uh !!!!!!
    >
    > thanks/regards
    > Anthony




  3. #3
    Gord Dibben
    Guest

    Re: Copy Worksheet..Howe ??

    Anthony

    To copy to the first available row, change

    rng1.copy Destination:=worksheets("sheet2").Range("A2")

    to

    rng1.copy Destination:=worksheets("sheet2".Cells(Rows.Count, _
    1).End(xlUp).Offset(1, 0)


    Gord Dibben Excel MVP

    On Tue, 8 Feb 2005 15:34:04 -0500, "Tom Ogilvy" <[email protected]> wrote:

    >Possibly
    >
    >Sub Macro1()
    >Dim rng as Range, rng1 as Range
    >set rng = Application.UsedRange
    >set rng1 = Range(Range("A3"),rng)
    >rng1.copy Destination:=worksheets("sheet2").Range("A2")
    >End sub



+ 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