Results 1 to 5 of 5

Linking DropDown box options to worksheets

Threaded View

  1. #1
    Registered User
    Join Date
    02-19-2010
    Location
    Cambridge, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Linking DropDown box options to worksheets

    Hi all,

    Sorry if this has been asked before, I've done some research online and I couldn't find a solution, so I thought I'd ask myself!

    Basically I have an intro page for a spreadsheet, with a DropDown box (couldbe Combo is thats easier) I need to have a series of options within the DropDown box, that when you click on it, links you to sheet within the workbook.

    So far I have:

    Private Sub DropDown14_Change()
      
    Select Case Range("AR86:AR105").Text
    
    Case "Option1t"
    Range("H:\Docs\CV Tracking.xlsx#sheet3!A1").Select
    
    Case "Option2"
    Range("H:\Docs\CV Tracking.xlsx#sheet4!A1").Select
    
    
    End Select
    End Sub
    but I've also tried:

    Private Sub ComboBox1_Click()
        ComboBox1.DropDown
    End Sub
    
    Private Sub Userform_Initialize()
        ComboBox1.AddItem "Option1"
        ComboBox1.AddItem "Option2"
        ComboBox1.AddItem "Option3"
        ComboBox1.AddItem "Option4"
        ComboBox1.AddItem "Option5"
    End Sub
    
    
    Private Sub ComboBox1_Change()
      Select Case ComboBox1.Value
    
    Case "Option1"
    Range("H:\Docs\CV Tracking.xlsx#sheet6!A1").Select
    
    Case "Option2"
    Range("H:\Docs\CV Tracking.xlsx#sheet21!A1").Select
    
    
    End Select
    End Sub
    but I've had no luck with either! Can anyone help?

    Thanks,

    Chris
    Last edited by chris2886; 02-19-2010 at 08:20 AM. Reason: forgot code tags

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1