+ Reply to Thread
Results 1 to 4 of 4

Thread: Hiding Tab with automatically changing tab name

  1. #1
    Registered User
    Join Date
    10-11-2009
    Location
    london, englans
    MS-Off Ver
    Excel 2003
    Posts
    31

    Exclamation Hiding Tab with automatically changing tab name

    Hi all,

    Wondering if someone can help me. I am having a few problems with hiding certain tabs. I have 10 + tabs in the workbook I want the VBA code to select all tabs after the first 3, so they can be hidden / unhidden using a radio or button.

    The name of the tab changes automatically based on values within a certain cell hindering me from using a constant name.

    I am very new to VBA code and mostly copy so any examples would be greatly appreciated

  2. #2
    Valued Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    659

    Re: Hiding Tab with automatically changing tab name

    HI

    Try using code like this to hide
    dim a as integer
    for a = 4 to worksheets.count
    sheets(a).visible=xlveryhidden
    next a
    and to show
    dim a as integer
    for a = 4 to worksheets.count
    sheets(a).visible=true
    next a
    Regards

    Jeff

  3. #3
    Registered User
    Join Date
    10-11-2009
    Location
    london, englans
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Hiding Tab with automatically changing tab name

    Hi mate,

    Thanks for the reply but it doesnt seem to work. Is sheet 1 or 4 supposed to be named as "a"?


  4. #4
    Registered User
    Join Date
    10-11-2009
    Location
    london, englans
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Hiding Tab with automatically changing tab name

    Sweet all works now

    Thanks for all the help

+ 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.2.0