sheet selection from an input box - Thank you

E

Eduardo

How can I get a sheet within a worksheet to be selected when entering the
name in an input Box.
For Example, I have a different sheet for each employee and I want then to
go to their sheet and enter daily information. Sheets for each employee is
hidden and password protected so when running the macro it will ask for your
name, once is entered it will ask for your password, if password is correct
it will open the sheet otherwise it will tell you Password incorrect. Is it
possible. thank you
 
G

Gary''s Student

Sub sheet_picker()
Dim s As String
s = Application.InputBox(prompt:="enter sheetname:", Type:=2)
Sheets(s).Activate
End Sub
 
G

Gary''s Student

It just insures that a String gets returned and not a number.

By the way, I don't know how to do the password thing.
 
E

Eduardo

Thank you again and have a great weekend

Gary''s Student said:
It just insures that a String gets returned and not a number.

By the way, I don't know how to do the password thing.
 

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