Toggle Worksheets

G

Geo Siggy

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
 
M

Mike Fogleman

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

Geo Siggy

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top