VBA to Formula?

chef

Well-known Member
Joined
Jul 10, 2002
Messages
610
Office Version
  1. 365
  2. 2016
Probably a long shot but I though I would ask the experts or at least get the clarification of not possible.
I have used this code in various iterations for years and it works great for users to click on a value and automatically open up another workbook with the value in A1

My organisation has now disabled all macros on the back of microsoft 365 policy/guidance and I cannot use vba/macro now under any circumstance.
I am trying to have a user click on any value in a sheet called "Emp" and open up a sheet called "six" with the value chosen in cell A1.
I am assuming this cannot be achieved by formula solution, but thought I would ask just in case.

Whole disabling VBA is a real pain and feel such a backward step in 2023.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("C8:C180")) Is Nothing Then
Sheets("Six").Range("A1").Value = Target.Value
Sheets("Six").Activate
End If
End Sub

regards
Ian
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,215,087
Messages
6,123,050
Members
449,092
Latest member
ikke

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