- ©«¤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# cmo140497
¸Õ¸Õ¬Ý- Sub Ex()
- Dim Rng As Range, i As Integer, S As Integer
- Dim Ar '() <-°ÊºA°}¦C
- With Sheets("sheet3")
- Set Rng = .Range("b14:o23")
- For i = Application.Min(Rng) To Application.Max(Rng)
- Debug.Print i & ":" & Application.CountIf(Rng, i)
- If Application.CountIf(Rng, i) > 0 Then
- Ar = Ar & IIf(Ar <> "", "," & i, i) '°ÊºA°}¦C®É µù¸Ñ¦¹¦æµ{¦¡½X(¤£»Ý¦¹¦æµ{¦¡½X)
- 'ReDim Preserve Ar(S)
- 'Ar(S) = "" & i
- 'S = S + 1
- End If
- Next
- Ar = Split(Ar, ",") '°ÊºA°}¦C®É µù¸Ñ¦¹¦æµ{¦¡½X(¤£»Ý¦¹¦æµ{¦¡½X)
- .Shapes(1).ControlFormat.List = Ar
- End With
- End Sub
½Æ»s¥N½X |
|