Always open workbook to same sheet ...

TamsinL

New Member
Joined
Oct 5, 2006
Messages
10
Hi there,

I am creating tool for inputting data on to Excel using a Userform. My issue is that I have a worksheet that is my menu, with various buttons to activate the userform, create report or view the data and I would like this to always be the sheet that is shown when the tool opens. Currently, whichever sheet you save and close on is the one that shows when you re-open the file. How do I get my menu to show every time?

Thanks very much.
 

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).

stuartford

Active Member
Joined
Nov 28, 2002
Messages
419
Private Sub workbook_open()

Sheets("Sheet1").Select

End Sub

this will open the sheet you need if placed in the This Workbook area of the VBA window. you will have to change the Sheet1 name to match your sheet title

hope this makes sense

Stu
 

TamsinL

New Member
Joined
Oct 5, 2006
Messages
10
Thanks Stu, I knew it would be something like this but wasn't sure of the exact code and where to put it. And thanks very much for the quick reply. I have only just discovered this site and I think I will be coming back!

Cheers!
 

Forum statistics

Threads
1,136,262
Messages
5,674,709
Members
419,521
Latest member
Jasonnie

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