+ Reply to Thread
Results 1 to 3 of 3

Sheets("Sheet1").Move After:=Sheets(2)

  1. #1
    Arturo
    Guest

    Sheets("Sheet1").Move After:=Sheets(2)

    Is there syntax that will allow me to move a sheet of choice to the end
    without requiring the number of sheets being known?

    Arturo

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Arturo,

    Change "Sheet1" to the sheet you wish to move to the end.

    Worksheets("Sheet1").Move After:=Worksheets(Worksheets.Count)

    Sincerely,
    Leith Ross

  3. #3
    Arturo
    Guest

    RE: Sheets("Sheet1").Move After:=Sheets(2)

    Just found this link:

    http://computerwhizzard.50megs.com/excelmacros.html

    Sub AddSheetsTutorialExampleRevised()
    With ActiveSheet
    .Move after:=Worksheets(Worksheets.Count)
    End With
    End Sub




    "Arturo" wrote:

    > Is there syntax that will allow me to move a sheet of choice to the end
    > without requiring the number of sheets being known?
    >
    > Arturo


+ 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