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
 

Some videos you may like

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

DRJ

MrExcel MVP
Joined
Feb 17, 2002
Messages
3,853
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
 

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
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...
 

Watch MrExcel Video

Forum statistics

Threads
1,122,214
Messages
5,594,881
Members
413,947
Latest member
gizmolucy

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
Top