- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# brabus
¥i¥Î VBA- Private Sub Worksheet_Change(ByVal Target As Range)
- Application.EnableEvents = False
- If Target(1).Cells = [B5] Then
- [C5] = ""
- For Each E In Range([G5], [G5].End(xlDown))
- If [B5] >= Val(Split(E, "~")(0)) And [B5] <= Val(Split(E, "~")(1)) Then
- S = IIf(S = "", E.Offset(, -1), S & "," & E.Offset(, -1))
- End If
- Next
- With Range("C5").Validation
- .Delete
- If S <> "" Then
- .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
- xlBetween, Formula1:=S
- End If
- End With
- End If
- Application.EnableEvents = True
- End Sub
½Æ»s¥N½X |
|