- ©«¤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
        
|
¦^´_ 7# ´Ñ»y³¾»ï
¬O©Ç©Çªº,×¥¿±K½Xªí³æ¦p¤U.- Option Explicit
- Dim P As Integer, ±K½X°Ï As Range
- Private Sub UserForm_Initialize()
- Set ±K½X°Ï = Sheet1.Range("A2", Sheet1.[C2].End(xlDown))
- TextBox2.PasswordChar = "*" '(¶È^¤å¿é¤J¼Ò¦¡) ¤J±K½X®ÉÅý±K½X¥H"*"¸¹Åã¥Ü
- End Sub
- Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
- If CloseMode = 0 Then Cancel = 1 '°±¤î¥Îªí³æ( X ) Ãö³¬ªí³æ
- End Sub
- Private Sub CommandButton1_Click()
- Dim R(2 To 3) As Range
- Dim WshShell As Object, BtnCode As Integer
- Set WshShell = CreateObject("WScript.Shell")
- Set R(2) = ±K½X°Ï.Columns(2).Find(TextBox1.Text, LookAt:=xlWhole, MatchCase:=True) '´M§ä±b¸¹
- Set R(3) = ±K½X°Ï.Columns(3).Find(TextBox2, LookAt:=xlWhole, MatchCase:=True) '´M§ä±K½X
- If Not R(2) Is Nothing And Not R(3) Is Nothing Then '§ä¨ì±b¸¹»P±K½X
- If R(2).Row = R(3).Row Then '±b¸¹»P±K½X¦P¤@¦C
- BtnCode = WshShell.popup("µn¤JªÌ :" & ±K½X°Ï(R(2).Row, 1), 3, "µn¤J°T®§")
- ThisWorkbook.Åv = ±K½X°Ï(R(2).Row, 1)
- Unload Me
- End If
- End If
- P = P + 1
- If P > 2 Then
- CommandButton1.Caption = "µn¤J¥¢±Ñ¤F"
- Unload Me
- BtnCode = WshShell.popup("ÀÉ®×»ÝÃö³¬" & Chr(10) & Chr(10) & "µn¤J:±b¸¹,±K½X.. ¿ù»~", 3, "µn¤J¥¢±Ñ")
- 'ThisWorkbook.Close False '*** ´ú¸Õ´Á¶¡¼È¥B¤£ Ãö³¬ÀÉ®× **
- Else
- CommandButton1.Caption = "µn¤J¦¸¼Æ ³Ñ " & 3 - P & " ¦¸"
- End If
- End Sub
½Æ»s¥N½X |
|