• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Always hidden tabs ?

massam

New Member
Hi,

- I have 3 sheets, mainsheet, data1 and data2.
- I have hyperlinks from mainsheet to both data1 and 2.
- I have vb code that hides data1 and 2 when Im on mainsheet.
Is it possible to always hide the tabs ? Basicly what Im trying to achieve is that when I click on the hyperlink on mainsheet to data1, that data1 is opened but the data1 tab is not visible.

Thanks
 
Welcome to the forum.

You mean have the sheet (data1) visible, but not the tab menu at the bottom of the screen?

You can hide entire tab menu, but not individual tabs.

To hide entire tab menu...
Options->Advanced
Scroll down to "Display options for this workbook"
Uncheck "Show sheet tabs".
upload_2018-8-30_16-6-57.png

Alternately you can use VBA code to control it.
Code:
'Hide
ActiveWindow.DisplayWorkbookTabs = False
'Show
ActiveWindow.DisplayWorkbookTabs = True
 
Where would the hyperlink be taking you then, if the sheet is hidden? Wouldn't you just stay on the main sheet?

EDIT: Looks like Chihiro understood better.
 
@Luke M
You can achieve some interesting user interface behaviour by using VBA to switch sheets without the tabs showing. For example if there are two different cases of a calculation (a set of stats tests presented one such instance) clicking an option control actually changes sheet but all the user sees is an output block that has changed; there is no indication that the active sheet has changed.

A key aspect of creating the illusion is that user input settings including panning and zoom state need to be copied across to the new sheet.
 
Back
Top