+ Reply to Thread
Results 1 to 3 of 3

Code to move active sheet tab all the way to the end (right)?

Hybrid View

  1. #1
    Registered User
    Join Date
    11-06-2008
    Location
    Illinois
    Posts
    63

    Question Code to move active sheet tab all the way to the end (right)?

    I searched and found a couple of different active.sheet codes but could not get it to work. What I want to do is move the worksheet tab I create in the code below all the way to the end (right) of the worksheet tabs already in my workbook.

    Sub Workbook_Open()
       Dim WS As Worksheet
       Set WS = Sheets.Add
          WS.Name = Format(Date, "mm-dd-yy")
    End Sub
    Much thanks,

    Nick
    Last edited by Nickster64; 12-11-2008 at 10:18 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
       Dim wks As Worksheet
       
       Set wks = Worksheets.Add(After:=Sheets(Sheets.Count))
       wks.Name = Format(Date, "mm-dd-yy")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-06-2008
    Location
    Illinois
    Posts
    63
    Exactly what I was looking for. Thanks shg!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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