Linking a List to a Worksheet

delts509

New Member
Joined
Sep 30, 2016
Messages
5
I am working on a custom rubric in Excel. I have several different rubrics as worksheets within the same workbook (software, hardware, accessories, etc.).

The first worksheet a user would see is an informational page that asks for the users information, and has a drop down list (made using data validation) that asks them to select what they wish to view (software, hardware, accessories, etc.).

I am looking for a way to send the user directly to the worksheet based on their selection. For instance, if the user selects "Software" from the drop down menu, they would be taken to the software worksheet.

Is this possible? If so, how would this be accomplished?

Any help is greatly appreciated!!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Try worksheet change click on the informational tab, right click view code.

Suppose the dropdown is in A5. The code would look something like

Code:
if range("A5")="Software" then
worksheets("Software").activate
endif

And so forth for the other selections
 
Upvote 0
Try worksheet change click on the informational tab, right click view code.

Suppose the dropdown is in A5. The code would look something like

Code:
if range("A5")="Software" then
worksheets("Software").activate
endif

And so forth for the other selections

So I have to apologize as I am not familiar with where this code would go. Would this be required in the Macro section, or something I could use as the If/Then statements within the formula section.

Thanks again!!
 
Upvote 0
This code would go into the Worksheet_change macro. Access it by right clicking on the tab and selecting view macro
 
Upvote 0
This code would go into the Worksheet_change macro. Access it by right clicking on the tab and selecting view macro

That worked perfectly for all of the choices!! Thank you so much, I was struggling to find a way to make that happen!

One quick follow-up question. Is there a way to execute the same code if the worksheets were hidden? Currently, they are all visible, but I was hoping to hide them so that the tabs are not selected by the user. When I run the macro with the worksheets hidden, nothing happens.

Thanks again!!
 
Upvote 0
Glad it worked. You could add:
Code:
if range("A5")="Software" then
[COLOR=#ff0000]worksheets("Software").Visible = True[/COLOR]
worksheets("Software").activate
endif

And to get real fancy, you could hide them all back on close of the workbook

Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
[COLOR=#FF0000]worksheets("Software").Visible = false
'add more here as needed[/COLOR]
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,737
Members
449,050
Latest member
excelknuckles

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