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

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
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,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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