Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locking the macros etc

Status
Not open for further replies.

User4Fun

Programmer
Aug 6, 2008
15
0
0
US
How can I force a certain sheet to start everytime a user oepens a spreadsheet.
Also, How do I lock the macros and buttons so a user cannot just right click and changes things.

Thank you
 
to open a sheet when a spreadsheet opens you need to go to the VBA Code of "ThisWorkbook" (rather than the code for a single sheet)
then in there you can have
Code:
Private Sub Workbook_Open()
Sheets("Sheet3").Select
End Sub
where "Sheet3" is the name of your sheet
and as for trying to lock macro's and buttons, I'm not sure about the macro's but for the buttons you can use:
Code:
Me.CommandButton1.Locked = True
where CommandButton1 is the name of your button
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top