Macro - When opening file return to tab main_Menu

Johnny Thunder

Well-known Member
Joined
Apr 9, 2010
Messages
693
Office Version
  1. 2016
Platform
  1. MacOS
Hello,

I am trying to enter a macro for when my excel fie is opened it will go to a specific tab ("Main_Menu") always.

This is so that when my shared filed gets saved in another tab the next user that opens it will go directly to the Main_menu tab.

Thanks in advance for your help!
 
Try changing the word "Worksheets" in the macro to "Sheets."

There are several Types of sheets in a workbook. "Sheets" includes all sheets, where "Worksheets" only contains sheets of Type:= Worksheets.
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Justin,


Your solution worked perfectly, by changing the Tab name to just "Main" it works!
 
Upvote 0
I did, but for some reason it would not link to the tab name?

I renamed it "Main" and it worked perfectly so i tried again... i renamed it back to "Main_Menu" and it would not link? But it works now with "main" so I am happy.
 
Upvote 0
Very strange; if you want to email me the "not working" workbook (please clear all data) with the Tab "Main_Menu", I would like to investigate what the problem could be.

have a nice weekend!
Erik
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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