+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    01-04-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    20

    Remove sheet tab

    Hi there,

    Can anyone tell me how to prevent user from restoring the sheet tab under the tools, option, view? Anyway to hide the sheet tab within the excel funtion or macro??

    Many thanks

  2. #2
    Forums Administrator royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    24,431

    Re: Remove sheet tab

    Do you mean that you have a sheet that you don't want the user to access?
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel consulting, free examples and tutorials visit Excel Consulting-Excel VBA
    Check out the free Excel Toolbar

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)


    Code Tags: Make your code easier for us to read

  3. #3
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    768

    Re: Remove sheet tab

    Which version of Excel.

    If there are sheets you don't want people to see then you can set the sheet visible property to xlVeryHidden. This needs acces to the VBA module to undo it. The VBA module can be password protected.



    Hope this was useful or entertaining.

  4. #4
    Registered User
    Join Date
    01-04-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Remove sheet tab

    Hi there,

    Thanks for your reply

    I would like to hide the sheet tab so that the user is not able to see the sheet tab or switching between the sheet by choosing the sheet tab. I would like the user to click on the hyperlink that I have linked to switch between the sheets.

    If I put the sheet as "very hidden", the formulae that point to that sheet will not work.

    Any suggestion?

  5. #5
    Forum Moderator dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003 & 2007
    Posts
    3,661

    Smile Re: Remove sheet tab

    Good afternoon justinng

    Go to Tools > Options, View and untick the Sheet Tabs button and click OK. This will remove from view your sheet tabs. Then your users will have to use your hyperlinks to navigate.

    The VBA code for doing this would be :
    Code:
    ActiveWindow.DisplayWorkbookTabs = False
    HTH

    DominicB
    Now available : Ultimate Add-In 2007
    Integrates directly into the Office Excel Ribbon


    Download Ultimate Add-In v1.52 from www.dom-and-lis.co.uk
    90+ Utilities, 200+ Sub utilities last updated 25th April 2008
    Free!!

  6. #6
    Registered User
    Join Date
    01-04-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Remove sheet tab

    Hi Dominic,

    Even if I untick the option, the user will still be able to go option and tick to show the sheet tab on their own.

    Anymore suggestion?

    Thank you

  7. #7
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    768

    Re: Remove sheet tab

    if you use the "very hidden" option you can code the navigation to "un hide" any sheet as you need to and to check the sheet tabs are still hidden.
    Last edited by tony h; 04-03-2010 at 04:33 PM.


    Hope this was useful or entertaining.

  8. #8
    Registered User
    Join Date
    01-04-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Remove sheet tab

    Hi Tony,

    Thanks for the suggestion, but if I set the sheet as very hidden, the hyperlink that linked to that 'very hidden' sheet will not be working.

    What can I do?

  9. #9
    Forum Moderator dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003 & 2007
    Posts
    3,661

    Smile Re: Remove sheet tab

    Hi justinng

    What you want will need macros. You will have to ditch the hyperlink idea and go for a series of buttons. Each button will have to unhide the requested sheet first, then hide the menu sheet. Each worksheet will need it's own navigation buttons to return to another sheet, or the menu.

    The whole thing is going to be extremely messy and a nightmare when you add new sheets. Also, users may well be able to get into the macros and tinker with it from there.

    You could use the code I gave you within a Worksheet Change event, so that if anyone were to switch the tabs back on then they would be hidden again the next time the worksheet changed. The flip side of this is that you would lose your undo facility.

    You are going to have to accept some kind of compromise that you can't have exactly what it is that you're after. But there is no sign of any compromise.

    DominicB
    Now available : Ultimate Add-In 2007
    Integrates directly into the Office Excel Ribbon


    Download Ultimate Add-In v1.52 from www.dom-and-lis.co.uk
    90+ Utilities, 200+ Sub utilities last updated 25th April 2008
    Free!!

  10. #10
    Registered User
    Join Date
    04-02-2010
    Location
    Gwynedd, Wales
    MS-Off Ver
    Office 97
    Posts
    4

    Re: Remove sheet tab

    In my ancient Excel 97, assuming you don't want to work on the sheet too often, I would rename the sheet in question "use the hyperlinks", then I would open it and select White as the font colour for all cells (they won't be able to read anything with values the same colour as the fill) except one saying Please Use the hyperlinks as requested you **** then protect the sheet with a password. As far as I can tell, formulas linked to other sheets will still work. Without the password they won't be able to change the font colour even if they notice that the icon shows white.

  11. #11
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    768

    Re: Remove sheet tab

    Attached a version working with hyperlinks
    Attached Files Attached Files


    Hope this was useful or entertaining.

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