Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("E27")) Is Nothing Then
Sheets("VINYL").Activate
End If
End Sub
I agree with the solution, maybe I would also add:Use worksheet event code below.
How to use worksheet event the codeVBA Code:Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Intersect(Target, Range("E27")) Is Nothing Then Sheets("VINYL").Activate End If End Sub
Right click on Sheet tab --> view code
Visual Basic (VB) window opens.
Paste the code
Close the VB window.
Save the file as .xlsm
The cell "K27" that needs to be selected is on the TAB called "TITLE" and would open the TAB called "METAL" and open up to the top of the page on METAL TAB. Sorry about not saying what the actual worksheet data is.Use worksheet event code below.
How to use worksheet event the codeVBA Code:Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Intersect(Target, Range("E27")) Is Nothing Then Sheets("VINYL").Activate End If End Sub
Right click on Sheet tab --> view code
Visual Basic (VB) window opens.
Paste the code
Close the VB window.
Save the file as .xlsmThe TA
Just modify the code given to you to match those minor changes (change range name and sheet name), and then select the first cell on that Sheet:The cell "K27" that needs to be selected is on the TAB called "TITLE" and would open the TAB called "METAL" and open up to the top of the page on METAL TAB. Sorry about not saying what the actual worksheet data is.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("K27")) Is Nothing Then
Sheets("METAL").Activate
Range("A1").Select
End If
End Sub