change worksheet tab
Amazing chart utilities from Jon Peltier
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: change worksheet tab

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Posts
    83
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I know this is a simple one .. but I cant find the answer in here using search .. so I've got to ask this question ..

    I want to run a macro that gets the current worksheet name from the tab at the bottom and then changes it to a set string eg; "balance"

    I know its simple .. but I dont know how to read the current worksheet name and change it .. cos the user may have manually changed the tab name.

    Secondly .. is there a way of stopping the users from changing sheet tab names ?

    Thanks
    Bill

  2. #2
    MrExcel MVP Al Chara's Avatar
    Join Date
    Feb 2002
    Location
    Newark, Delaware
    Posts
    1,701
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    To answer your first question:

    If ActiveSheet.Name <> "balance" Then ActiveSheet.Name = "balance"

    Best regards,
    Allan Chara
    http://www.mrspreadsheets.com

  3. #3
    MrExcel MVP Al Chara's Avatar
    Join Date
    Feb 2002
    Location
    Newark, Delaware
    Posts
    1,701
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    To answer your second question:

    Go to tools|options|view tab|uncheck "Sheet tabs" Now the user can't see the sheet tabs, but he/she can cycle through them by pressing ctrl+PageUp or ctrl+PageDown...not sure if that is what you are looking for.
    Best regards,
    Allan Chara
    http://www.mrspreadsheets.com

  4. #4
    Board Regular
    Join Date
    Mar 2002
    Posts
    83
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Thanks guys for your help .. I now know how to check & change tab names.
    I think hiding the tabs and making the users use contol keys to change tabs would irritate them .. but thanks for the suggestion ..

    Is there no VB code I can use to disable changing of the tab name ?

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com