Macro again

Laszlo

New Member
Joined
Feb 11, 2004
Messages
25
Hi :rolleyes:
I would like to get a little help. I have a workbook that contains worksheet for individual use. The second sheet is a general one with all the names and information. The first one is the sheet with all the names. All names had been hyperlinked to the according sheet. What I would like to have is a macro that always opens the first sheet, when the user opens the workbook. Or have a macro, when the user opens the workbook, asking for the name, opens the sheet belongs to the user and hides the other worksheets. It is probably very easy, but for me takes a little bit longer.
Thanks in advance
Laz
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi

Put this in the thisworkbook code section

Code:
Private Sub Workbook_Open()
Sheets(1).Select
End Sub

To hide sheets you can use sheets("Sheet1").visible = false
 
Upvote 0
Heya Lazlo,

PM me your e-mail address and I will send you a workbook that I put together for another board member last week that does just what you're asking. (Instructions included :biggrin: )

Have a great weekend,

Smitty

EDIT: I can send it on Monday as I have it @ work...
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,525
Members
449,088
Latest member
RandomExceller01

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