+ Reply to Thread
Results 1 to 3 of 3

How to control the Sheet tab position

Hybrid View

  1. #1
    Bobby
    Guest

    How to control the Sheet tab position

    Hi, how can I control the position of a Sheets when adding one? For
    instance
    always before "SHEET1".
    Thank's in advance.

    Sheets.Add
    ActiveSheet.Name = "TMP"


  2. #2
    Bobby
    Guest

    Re: How to control the Sheet tab position


    Bobby wrote:
    > Hi, how can I control the position of a Sheets when adding one? For
    > instance
    > always before "SHEET1".
    > Thank's in advance.
    >
    > Sheets.Add
    > ActiveSheet.Name = "TMP"

    Bobby, this is how you do it!
    Sheets("TMP").Select
    Sheets("TMP").Move Before:=Sheets(1)
    or
    Sheets("TMP").Move After:=Sheets(1)


  3. #3
    Gord Dibben
    Guest

    Re: How to control the Sheet tab position

    When adding a new sheet........

    Sub SheetAdd()
    Sheets.Add Before:=Sheets("Sheet1")
    End Sub


    Gord Dibben MS Excel MVP

    On 15 Jun 2006 16:20:14 -0700, "Bobby" <[email protected]> wrote:

    >Hi, how can I control the position of a Sheets when adding one? For
    >instance
    >always before "SHEET1".
    >Thank's in advance.
    >
    >Sheets.Add
    > ActiveSheet.Name = "TMP"



+ 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