Switch to different worksheet when value is entered

Sherrise

New Member
Joined
Oct 25, 2021
Messages
18
Office Version
  1. 365
Platform
  1. Windows
I have looked every place to try and find the answer to this. I hope someone can help!!

In worksheet1 Cell E3 when I enter a number (Value) in this cell and hit enter I want it to take me to worksheet2.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I have looked every place to try and find the answer to this. I hope someone can help!!

In worksheet1 Cell E3 when I enter a number (Value) in this cell and hit enter I want it to take me to worksheet2.
Must it be a number or any value? And go to where on sheet2
And what is the name of worksheet2
 
Upvote 0
Try this:
This is an auto sheet event script
Your Workbook must be Macro enabled
To install this code:
Right-click on the sheet tab
Select View Code from the pop-up context menu
Paste the code in the VBA edit window
Put this script in sheet1
When you enter any value in Range("E3" the script will take you to sheet2 range("A1")
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
'Modified  2/3/2022  5:54:24 PM  EST
If Target.Address = "$E$3" Then Application.Goto Sheets(2).Range("A1")
End Sub
 
Upvote 0
Thank you so much for a quick turn around. I keep getting a Compile error: Syntax error
 

Attachments

  • Mr Excel Question 02-03-22.png
    Mr Excel Question 02-03-22.png
    88 KB · Views: 2
Upvote 0

Forum statistics

Threads
1,214,592
Messages
6,120,433
Members
448,961
Latest member
nzskater

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