VBA Drop Down Menu Question

MiceElfandEye

New Member
Joined
Dec 19, 2015
Messages
14
I have a drop down menu and corresponding macros for people to navigate around a large workbook, my question is before the macro runs to take them to the appropriate tab can it return the Drop Down to say MENU (essentially returning it to a resting state)

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("b2")) Is Nothing Then
Select Case Range("b2")
Case "Menu 1": Menu
Case "Dashboard": MenuDash
Case "Step 0": MenuStep0
Case " Step 0 Test": Menu0Test
Case " Step 0 etc": MenuStep0etc

End Select
End If
End Sub

This is the truncated version as I thought I'd save everyone from reading a complete list of macros.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Yes.

If your Dropdown is in the cell B2 then you just need to change the value:
Code:
Range("B2") = "Whatever you want in the cell"

If it's an actual dropdown something like this will work:
Code:
[FONT=Courier New][COLOR=#3d3d3d]Sheets("Sheet1")[/COLOR][/FONT].Shapes("Combo Box 1").ControlFormat.ListIndex = 1 'The index of the item you want to select
 
Upvote 0
It is a Data validation list. Where would I want to place Range("B2") = "Whatever you want in the cell" in the code? Basically I just want them to have it say menu if they go back to that tab later.where
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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