Drop down list linked to Worksheets

shakeregg

New Member
Joined
Sep 2, 2018
Messages
39
Hey all,

If someone could help me with this I would really appreciate it.

I have a workbook (named Database) which contains 4 worksheets named Main, Leeds, Bradford, York. Ideally I would like to create a drop down list in Main which lists the other worksheets which when selected will automatically take me to that worksheet.

i.e.

Select Cluster
- - - - - - - - -
Leeds
Bradford
York


Would it also be possible to hide the Leeds,Bradford& York worksheets so thy don't appear as tabs?

Cheeeeeeeeers in advance
 
How about
Select B6 > Data validation > set Allow to "List" > in source enter Leeds, Bradford, York > Ok
Then in the "Main" sheet code modue paste

Code:
Private Sub Worksheet_Activate()
   Dim Sht As Worksheet
   For Each Sht In Sheets(Array("Leeds", "Bradford", "York"))
      Sht.Visible = 0
   Next Sht
   Me.Range("B6").Value = ""
End Sub

Private Sub Worksheet_Change(ByVal Target As Range)
   If Target.CountLarge > 1 Then Exit Sub
   If Target.Address(0, 0) <> "B6" Or Target = "" Then Exit Sub
   With Sheets(Target.Value)
      .Visible = -1
      .Activate
   End With
End Sub
 
Last edited:
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Rule #13 :
We prefer that members do not cross-post questions to other forums, but when this does occur members should do the following:
- Post the details of your question on our forum. Do NOT simply post a link/re-direct to the question in another forum with no details posted here.
- Make it clear that you have cross-posted and provide links to the cross-posts.
Cross-posted questions that do not comply may be deleted or locked. For a discussion on the issues with cross-posting, see this link: Excelguru Help Site - A message to forum cross posters
 
Upvote 0
I will move on and not try helping with this question since I now see this question has been posted in another forum.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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