Good day
I am looking for a way to find the address of the data used to create a dropdown in vba. The dropdown is created by using the code :
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _
Operator:=xlBetween, Formula1:="='" & ws.Name & "'!" & range1.Address
the dropdown code is used multiple time and I need to find a way to find the worksheet used for the formula1 code. This will help me be able to create cases that reference that worksheet later on in my code. please see picture attached:
Choosing the selected a or b value is then run by the code
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("J9:J15")) Is Nothing Then
Select Case Target
Case "a": hala
Case "b": toets_my_ws
End Select
End If
when I select one of the macros I need it to find the worksheet of the validated data.
