ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Toggle Worksheets (https://www.excelbanter.com/excel-programming/292780-toggle-worksheets.html)

Geo Siggy[_12_]

Toggle Worksheets
 
Hi,
how to prevent users from toggling through the existing Worksheets b
using the CTRL UP or CTRL DOWN buttons. Changing Worksheets should onl
be possible by a VBA program (userform menu).
Thanks
Sigg

--
Message posted from http://www.ExcelForum.com


Mike Fogleman

Toggle Worksheets
 
Sheets("Sheet1").Visible = xlVeryHidden
Sheets("Sheet1").Visible = True



Mike Fogleman

Toggle Worksheets
 
Sheets("Sheet1").Visible = xlVeryHidden
Sheets("Sheet1").Visible = True

Sorry I didn't explain this.

Sheets("Sheet1").Visible = xlVeryHidden 'Will keep the sheet from showing up
in the Format/Sheet Unhide list so the user cannot unhide it from there

Sheets("Sheet1").Visible = False ' will show up in the list to Unhide, but
will not with CTRL UP/DOWN, as you asked.

Sheets("Sheet1").Visible = True 'Will make either case visible again.



Geo Siggy[_13_]

Toggle Worksheets
 
Hi Mike, thanks for the explanation.
But that would help only partially.

In my workbook are 2 or more worksheets open (as different windows) th
same time, so those worksheets are unhidden. How to prevent togglin
between worksheets in the same window ? (I don't mean toggling bewee
windows).

Sigg

--
Message posted from http://www.ExcelForum.com


Ko Vijn[_3_]

Toggle Worksheets
 
Set all sheets to VeryHidden
Unhide them by code in the userform
Ko

"Geo Siggy " schreef in bericht
...
Hi Mike, thanks for the explanation.
But that would help only partially.

In my workbook are 2 or more worksheets open (as different windows) the
same time, so those worksheets are unhidden. How to prevent toggling
between worksheets in the same window ? (I don't mean toggling beween
windows).

Siggy


---
Message posted from http://www.ExcelForum.com/





All times are GMT +1. The time now is 10:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com