- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 253
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-22
|
¦^´_ 1# ayubbs - Private Sub Worksheet_Change(ByVal Target As Range)
- Set d = CreateObject("Scripting.Dictionary")
- If Target.Address = "$I$7" Then
- For Each a In Range([C3], [C3].End(xlDown))
- If a = Target Then d(a.Offset(, 1).Value) = ""
- Next
- With Target.Offset(1).Validation
- .Delete
- .Add xlValidateList, , , Join(d.keys, ",")
- End With
- End If
- End Sub
- Private Sub Worksheet_SelectionChange(ByVal Target As Range)
- Set d = CreateObject("Scripting.Dictionary")
- If Target.Address = "$I$7" Then
- For Each a In Range([C3], [C3].End(xlDown))
- d(a.Value) = ""
- Next
- With Target.Validation
- .Delete
- .Add xlValidateList, , , Join(d.keys, ",")
- End With
- End If
- End Sub
½Æ»s¥N½X
ex.zip (12.76 KB)
|
|