- ©«¤l
- 13
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 63
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- office 365
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2022-2-1
- ³Ì«áµn¿ý
- 2024-11-20
|
¦^´_ 1# av8d
°Ñ¦Ò¬Ý¬Ý
UserForm ªºµ{¦¡½X- Dim Sh As Worksheet
- Private Sub UserForm_Initialize()
- Set Sh = ActiveSheet
- ListBox1_¤º®e¨î©w
- End Sub
- Private Sub ListBox1_Click()
- With ListBox1
- If .ListIndex = -1 Then Exit Sub
- Sh.Range(.List(.ListIndex, 1)).Select
- Selection = .List(.ListIndex, 0) & " " & .List(.ListIndex, 1) 'ÅçÃÒ ¶µ¥Ø»P¦ì¸m
- End With
- End Sub
- Private Sub ListBox1_¤º®e¨î©w()
- Dim Ar(), R As Integer, i As Integer, ii As Integer
- Ar = Array("A", "F", "K", "P") '«ü©wÄd¦ì
- R = 0
- With ListBox1
- .ColumnCount = 2 ' Åã¥Ü2ÓÄæ¦ì
- .Font.Size = 14
- For i = 0 To 49 Step 4
- R = IIf(i > 3, R + 1, 0) '¶¡¹j14¦Cªºp¼Æ
- For ii = 0 To 3
- If i + ii + 1 > 50 Then Exit For
- .AddItem
- .List(i + ii, 0) = "¶µ" & i + ii + 1
- .List(i + ii, 1) = Ar(ii) & IIf(R = 0, 1, R * 13 + R) '¶¡¹j14¦Cªº¦ì¸m
- Next
- Next
- End With
- End Sub
½Æ»s¥N½X |
|