- ©«¤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
|
¦^´_ 12# kelsie - Private Sub Worksheet_SelectionChange(ByVal Target As Range)
- Dim Rng(2) As Range, i%, ii%
- Set Rng(0) = [B3:I4] '¼Æ¦r§e²{°Ï
- Set Rng(1) = [B6:I7] '¼Æ¦r±Æ§Ç°Ï
- Set Rng(2) = [B10:K13] '¼Æ¦r¿ï¨ú°Ï
- If Not Intersect(Target, Rng(2)) Is Nothing Then
- i = Application.Count(Rng(0)) 'pºâ ¼Æ¦r§e²{°ÏªºÁ`¼Æ¦r¼Æ
- If i = Rng(0).Count Then '¼Æ¦r§e²{°Ï ¥þ³¡¶ñº¡¼Æ¦r ®É
- Rng(0) = "": Rng(1) = "" '²MªÅ->¼Æ¦r§e²{°Ï,¼Æ¦r±Æ§Ç°Ï
- i = Application.Count(Rng(0)) 'pºâ ¼Æ¦r§e²{°ÏªºÁ`¼Æ¦r¼Æ
- End If
- If Application.CountIf(Rng(0), Target) = 0 Then '¼Æ¦r§e²{°Ï¸Ì´M§ä«½Æªº¼Æ¦r
- Rng(0).Cells(i + 1) = Target
- For ii = 1 To i + 1
- Rng(1).Cells(ii) = Application.Small(Rng(0), ii) '¶Ç¦^¼Æ¦r§e²{°Ï¸Ì¥Ñ¤p¨ì¤j¦b¼Æ¦r±Æ§Ç°Ï
- Next
- End If
- End If
- End Sub
½Æ»s¥N½X |
|