Protecting a sheet on startup

Daniel Cremin

Board Regular
Joined
Feb 23, 2002
Messages
64
Hi i need code for my auto_open macro that
can make two worksheets ("Control and Reference
Sheet") and "Processing and Storage" protected
with only unlocked cells being allowed to be
selected. The thing is is that i dont want the
user to see these sheets at all - it should
automatically go to a "main menu sheet" with
the sheet tabs, rows and columns ,etc hidden.
is this possible?

Thanks very very much in advance.

Another macro needs to be ab
 
im not allowed to use code as advanced as that at this level - its a school project marked by really dense examiners who hate ne thing above activecell.offset !

Could i use a select... case statement and make
it equal to a named cell rather than text?

So Select Range("PasswordEntry")

Case Is = Sheets("C/R").Range("Password")
run code

case else

reset the contents of "Password entry"

End sub
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Will this work?
Case Is = Sheets("C/R").Range("Password").Value

or

Case Is = str$(Sheets("C/R").Range("Password"))

Tom
 
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,655
Members
448,975
Latest member
sweeberry

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top