Lock a worksheet tab so it is always visible

Bolter LAC

Board Regular
Joined
Aug 13, 2008
Messages
140
Hello, I need to lock a worksheet tab (Main menu) in place so that it is always visible. There are multiple tabs that are all linked to the main menu by hyperlink. When work is finished in a worksheet I want the main menu tab to be visible and usable rather than using the scroll functions to get back to the main menu.

Thanks
 
Although the original question to lock the tab is 8 years old, it is pretty interesting.
I would suggest the following:

Add this into a module

Code:
Sub FreezeTab()
    'Move the worksheet before active sheet
    Worksheets("Locked Tab").Move before:=ActiveSheet '<=This is the tab that need to be "locked"
End Sub

Then for every sheet (except the "Locked" sheet) add this code for the worksheet event

Code:
Private Sub Worksheet_Activate()
    Dim CurrSheet As String
    Application.ScreenUpdating = False
    Application.EnableEvents = False
    CurrSheet = Selection.Parent.Name
    Call FreezeTab
    Sheets(CurrSheet).Activate
    Application.EnableEvents = True
    Application.ScreenUpdating = True
End Sub

Now when you select any worksheet (other than the locked sheet), the "locked" sheet will always appear on the left.
Hope this will help some one.
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,215,362
Messages
6,124,502
Members
449,166
Latest member
hokjock

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