Hyperlink drop down list to cell in the sheet In Excel?

bixha

New Member
Joined
Oct 22, 2015
Messages
4
Hi,
I have create drop down list by VBA so from the list when i selection January to hyperlink (go) cell F2 where is January etc please see picture,attachment an code which I am using.
This time I have this code below but this code is so from DropDown list to go to Sheets but I am looking for from DropDown list to go to cell F2,G2 etc so when I selection January in Drop List to go to F2 or January cell. Can I upload attachment this form.
Code:
[/COLOR][COLOR=#333333]Private Sub ComboBox1_Change()[/COLOR]

<code style="margin: 0px; padding: 0px; font-style: inherit; font-weight: inherit; line-height: 12px;">Private Sub ComboBox1_Change()
'UpdatebyExtendoffice20180404
    Sheets(Me.ComboBox1.Text).Select
End Sub
Private Sub ComboBox1_GotFocus()
    Dim I As Long
    Me.ComboBox1.Style = fmStyleDropDownList
    If Me.ComboBox1.ListCount <> Sheets.Count Then
        Me.ComboBox1.Clear
        For I = 1 To ActiveWorkbook.Sheets.Count
            Me.ComboBox1.AddItem Sheets(I).Name
        Next
    End If
    Me.ComboBox1.DropDown
End Sub</code></pre>[COLOR=#333333]End Sub[/COLOR][COLOR=#333333]
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi there, I think it is discouraged to upload pictures, however yours did not get attached anyway.

Just so I'm clear on what you are trying to do, you have a dropdown list that has each month, and you want to hyperlink to go to a specific cell when that link within the dropdown list is clicked?
 
Upvote 0
Hi there, I think it is discouraged to upload pictures, however yours did not get attached anyway.

Just so I'm clear on what you are trying to do, you have a dropdown list that has each month, and you want to hyperlink to go to a specific cell when that link within the dropdown list is clicked?


The DropDown list is created by using Developer tools so Como Box. Can I add attach this form?
 
Upvote 0
The DropDown list is created by using Developer tools so Como Box. Can I add attach this form?

I am unsure the rules on attaching forms, I apologize.

I understand the list is created with the developer tools, but what are you trying to accomplish after the list is created? You want to choose a month from the list and have it take you to a specific cell? Or do you want that month to be written in a certain cell, or what?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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