Named Range / List box


I have a spreadsheet where I select a switch in cell M5, I choose one of 5 regions.

For those regions I have a list of reports and distribution lists. I have these set up in the named ranges e.g SectorASP

What I would like is that when the I select Asia in M5, using vba perhaps, the name range SectorASP is copied over K5:L5 and down

So when a user selects a region, the corresponding distribution list (as defined by the named ranges) is copied into K5:L5

Many thanks!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SteveCost AccountantCommented:
You could use INDEX and named ranges that match the list.
See attached foir example.
Rory ArchibaldCommented:
Worksheet code:
Private Sub Worksheet_Change(ByVal Target As Range)
    Dim sRange                As String
    On Error GoTo reset
    If Not Intersect(Target, Range("M5")) Is Nothing Then
        Application.EnableEvents = False
        Range("K5:L" & Rows.Count).Clear
        Select Case UCase$(Range("M5").Value)
            Case "ASIA"
                sRange = "ASP"
            Case "EUROPE"
                sRange = "EU"
            Case "LATIN AMERICA"
                sRange = "LA"
            Case "MIDDLE EAST"
                sRange = "ME"
            Case "NORTH AMERICA"
                sRange = "NA"
            Case Else
                sRange = vbNullString
        End Select
        If sRange <> vbNullString Then Range("SECTOR" & sRange).Copy Range("K5")
    End If

    Application.EnableEvents = True
End Sub

Open in new window

as in the attached file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
here you go
Seamus2626Author Commented:
Steve, the index didn't work for me......
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.