【发布时间】:2021-02-22 21:29:36
【问题描述】:
美好的一天
我正在寻找一种方法来查找用于在 vba 中创建下拉列表的数据地址。下拉菜单是使用代码创建的:
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _
Operator:=xlBetween, Formula1:="='" & ws.Name & "'!" & range1.Address
下拉代码被多次使用,我需要找到一种方法来找到用于公式 1 代码的工作表。这将帮助我稍后在我的代码中创建引用该工作表的案例。 请看附图:
选择选定的 a 或 b 值然后由代码运行
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
当我选择其中一个宏时,我需要它来查找已验证数据的工作表。
【问题讨论】: