User Selection as to which Function to Run
Hi,
Am Fri, 7 Aug 2015 13:39:13 -0500 schrieb JCO:
I suspect I get the selection up front, maybe dropdown list if that is
possible, then that code executes on the selection. That would be nice if
possible.
your numbers in column A, the validation list in B1.
First select the expected function
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(0, 0) < "B1" Then Exit Sub
Dim myRng As Range
On Error Resume Next
Set myRng = Application.InputBox("Select your range", "Selection",
Type:=8)
If myRng Is Nothing Then Exit Sub
Range("C1") = "=" & Target & "(" & myRng.Address & ")"
End Sub
The result is written to C1
Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
|