R
Risky Dave
Hi,
A variation on the hide a worksheet theme.
I have a series of worksheets (obviously with different names) accessed from
a central Navigation page. On each of the worksheets is a "Back" button that
returns the user to the Navigation page and hides the sheet.
Currently I have a different macro assigned to each back button that does
the same thing:
<name of current sheet here>.Protect
Sheets(<name of current sheet here>).Hidden = True
Sheets("Navigation Page").Select
What I would like to do is have a single macro that works for all sheets, so
it would look something like:
ActiveSheet.Protect
ActiveSheet.Hidden = True
Sheets("Navigation Page").Select
The only problem is I can't work out the syntax for the ActiveSheet lines.
Any help would be much appreciated.
TIA
Dave
A variation on the hide a worksheet theme.
I have a series of worksheets (obviously with different names) accessed from
a central Navigation page. On each of the worksheets is a "Back" button that
returns the user to the Navigation page and hides the sheet.
Currently I have a different macro assigned to each back button that does
the same thing:
<name of current sheet here>.Protect
Sheets(<name of current sheet here>).Hidden = True
Sheets("Navigation Page").Select
What I would like to do is have a single macro that works for all sheets, so
it would look something like:
ActiveSheet.Protect
ActiveSheet.Hidden = True
Sheets("Navigation Page").Select
The only problem is I can't work out the syntax for the ActiveSheet lines.
Any help would be much appreciated.
TIA
Dave