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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

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...
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,832
Messages
5,855,890
Members
431,772
Latest member
dannyboi1

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