+ Reply to Thread
Results 1 to 3 of 3

Copy to end

  1. #1
    Registered User
    Join Date
    09-15-2005
    Posts
    90

    Exclamation Copy to end

    my line is:
    Sheets("Sheet 1").Copy After:=Sheets(3)

    This is part of a sheet copy macro, I need it to copy "sheet 1" to the end, not after sheets(3). The workbook can have 40+sheets. Any help would be great!!!

  2. #2
    Jim Rech
    Guest

    Re: Copy to end

    Sheets("Sheet 1").Copy After:=Sheets(Sheets.Count)


    The default sheet name is "Sheet1" so I assume you changed the sheet name to
    have a space before the "1".

    --
    Jim
    "comotoman" <[email protected]> wrote
    in message news:[email protected]...
    |
    | my line is:
    | Sheets("Sheet 1").Copy After:=Sheets(3)
    |
    | This is part of a sheet copy macro, I need it to copy "sheet 1" to the
    | end, not after sheets(3). The workbook can have 40+sheets. Any help
    | would be great!!!
    |
    |
    | --
    | comotoman
    | ------------------------------------------------------------------------
    | comotoman's Profile:
    http://www.excelforum.com/member.php...o&userid=27292
    | View this thread: http://www.excelforum.com/showthread...hreadid=474121
    |



  3. #3
    Tom Ogilvy
    Guest

    Re: Copy to end

    Sheets("Sheet 1").Copy After:=Sheets(sheets.count)

    --
    Regards,
    Tom Ogilvy

    "comotoman" <[email protected]> wrote
    in message news:[email protected]...
    >
    > my line is:
    > Sheets("Sheet 1").Copy After:=Sheets(3)
    >
    > This is part of a sheet copy macro, I need it to copy "sheet 1" to the
    > end, not after sheets(3). The workbook can have 40+sheets. Any help
    > would be great!!!
    >
    >
    > --
    > comotoman
    > ------------------------------------------------------------------------
    > comotoman's Profile:

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




+ 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