Hello,
I'm trying to get cell from a dropdownlist to act as a shortcut to a cell on another worksheet.
My dropdownlist is in cell c8, and consists of cell text which are mirrored on sheet2 in column B.
I named that column intList, and so far the UDF only takes my to cell b1 on sheet2.
How do I tweak my UDF to jump to the cell which is named the same as my dropdownlist choice?
ie if I choose "apples" in my list, and "apples" is in cell b200 on sheet2, how do I make it go there?
I'm willing to hand out golden man babies (yes, that old beated down phrase).
I'm trying to get cell from a dropdownlist to act as a shortcut to a cell on another worksheet.
My dropdownlist is in cell c8, and consists of cell text which are mirrored on sheet2 in column B.
I named that column intList, and so far the UDF only takes my to cell b1 on sheet2.
How do I tweak my UDF to jump to the cell which is named the same as my dropdownlist choice?
ie if I choose "apples" in my list, and "apples" is in cell b200 on sheet2, how do I make it go there?
I'm willing to hand out golden man babies (yes, that old beated down phrase).
Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng1 As Range
Dim intList As String
If Not Application.Intersect(Range("c8"), Target) Is Nothing Then
Set rng1 = Sheets("sheet2").Range("b1:b1000").Find(intList)
If Not rng1 Is Nothing Then
Application.Goto rng1, True
End If
End If
End Sub