List Box: How do you enable link?

highndry

Board Regular
Joined
Nov 28, 2005
Messages
247
Hi

I have created this list box where I have around 10 tab (worksheet) names (AFD, AFS, CB&T, etc.). How can I redirect to those tab when someone select a name. I can use hyperlink but then I would have to type in all the tab name and it will take up too much space.

Thanks
 
All you need is:

Code:
Private Sub ListBox1_Change() 
    Sheets(ListBox1.Value).Select 
End Sub

The redundant code will cause an error.

Smitty
 
Upvote 0

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Ok I was wrong, it looks now that the list box is actually a combo box inserted from "Forms". That's why it is asking to assign a macro.
 
Upvote 0

Forum statistics

Threads
1,215,741
Messages
6,126,592
Members
449,320
Latest member
Antonino90

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