Moving around the screen

sadavies2906

New Member
Joined
Feb 5, 2011
Messages
45
Hi all
I have a data validation box in cell b2 with the following options, Q4-19, Q1-20, Q2-20.

Columns a:c are locked
data for Q4-19 starts in column d to p
data for Q1-20 starts in column q to ac
data for Q2-20 starts in column ad to ap

Based on the data validation selection I want the cursor/screen to move in the following way

Q4-19 go to d1
Q1-20 go to q1
Q2-20 go to ad1

can this be done with macros and just a formula of the back of the data validation selection?

Regards
Stephen
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Code goes in SHEET module
(right-click sheet tab \ viw code \ place code in window which open up)

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address(0, 0) = "B2" Then
        Select Case Target
            Case "Q4-19": [D1].Select
            Case "Q1-20": [Q1].Select
            Case "Q2-20": [AD1].Select
        End Select
    End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,737
Messages
6,180,659
Members
452,992
Latest member
TokugawaIesuma

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