Display table from different sheet via dropdown

SplatP1

Board Regular
Joined
Jun 15, 2010
Messages
69
Office Version
  1. 365
Platform
  1. Windows
Hi guys,

I have a dropdown list on Sheet 1, cell A1
There are many tables on sheet 2, that are named ranges.
If I select a value from the dropdown list, then the matching named range on Sheet 2 must be displayed on Sheet 1 cell A3.

Any solution is appreciated.

Cheers
Owen
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try this:
This is an auto sheet event script
Your Workbook must be Macro enabled
To install this code:
Right-click on the Sheet1 tab
Select View Code from the pop-up context menu
Paste the code in the VBA edit window

Now when you enter a Range name in Sheets(1).Range("A1") the Range will be copied into Sheet(1) starting at Range("B1")

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo M
If Target.Address = Range("A1").Address Then
Sheets(2).Range(Target.Value).Copy Sheets(1).Range("B1")
End If
Exit Sub
M:
MsgBox "The Range  " & Target.Value & "  Does not exist on Sheet(2)"
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,338
Messages
6,124,358
Members
449,155
Latest member
ravioli44

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