how do i Double click a cell with a variance and it take me to another worksheet

KassieS

New Member
Joined
Apr 19, 2018
Messages
2
I have a large spreadsheet with number variances to budget. I want to be able to click on a large variance and it take me to a different worksheet and enter a specific value into a specific cell. Is there a way to do this?

Example if I double click on cell A4 in sheet1 I want it to take me to sheet 2 and enter the value of cell A1 from sheet1

Anyone have any suggestions? Thanks in advance
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Look here and see if one of these solutions will work for you. You will have to build links for this occur.
 
Upvote 0
Try this:
Put this script in Sheet(1)

If you double click on sheet(1).Range("A4") the value in A4 will be entered in sheet(2) Range("A1")

If this is not what you want modify the script or clear me up on what you want.

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("A4")) Is Nothing Then
Cancel = True
Sheets(2).Range("A1").Value = Target.Value
Application.Goto Sheets(2).Range("A1")
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,618
Messages
6,120,544
Members
448,970
Latest member
kennimack

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