Use dropdown to jump to specific cell on worksheet

pyclen

Board Regular
Joined
Jan 17, 2022
Messages
85
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi there,

I have a worksheet, example shown below.
In cell B3 (based on a range in b42:b46) I want to select a Stab (Stab 1 - 4) and upon selection the cursor jumps to the corresponding cells (B14, O14, AB14, AN14).

I know others have asked the same or similar questions however since most of it is VBA which I am not familiar with I am having a hard time to adjust whatever code to my needs.
The sheet below is an example and the real deal is a bit larger but below is a good representation of what I am trying to achieve.

I found a solution that uses the Address function w/index&match however it is for a vertical list of values and not like mine w/values arranged horizontally and separated by a number of columns

I am thankful for any help and/or suggestion that can solve this for me.

1661962998476.png
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You can use find to get to the correct cell.
Placed in the worksheet module.
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$B$3" Then
        If Target.Value <> "" Then
            Range("A14:AW14").Find(what:=Target.Value).Select
        End If
    End If
End Sub
 
Upvote 0
Solution
You can use find to get to the correct cell.
Placed in the worksheet module.
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$B$3" Then
        If Target.Value <> "" Then
            Range("A14:AW14").Find(what:=Target.Value).Select
        End If
    End If
End Sub
Great, that does the trick, now I need to update for the real sheet but I am sure I figure this out.

Thanks again for the help
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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