- ©«¤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
        
|
¦^´_ 3# die78325
¥t¦bvba¤¤´¡¤J[¤@¯ëModule] ªº¼Ò²Õ- Option Explicit
- Public no As Integer '«Å§i ¿ù»~¦¸¼Æ¬°[¤@¯ëModule]ªº¤½¥ÎÅܼÆ
½Æ»s¥N½X- Option Explicit
- Private Sub UserForm_Initialize()
- BoxUser.Font.Size = 16
- End Sub
- Private Sub CmdLogin_Click()
- With BoxUser
- If .Value = "" Then MsgBox "½Ð¿é¤J¸³¨Æªø©m¦W¡I": Exit Sub '¦pªG¬°ªÅ¥Õ
- If .Value <> "s§µºû" Then '¦pªG¿é¤J¿ù»~
- MsgBox "¿é¤J¿ù»~¡I": Module1.no = Module1.no + 1
- If Module1.no = 3 Then
- MsgBox "©êºp¡I±z¨S¦³¨Ï¥ÎÅv¡I"
- ' ThisWorkbook.Close SaveChanges:=False
- Application.DisplayAlerts = False
- Application.Quit 'Ãö³¬Excel
- End If
- Else
- Module1.no = 0 '¿ù»~¦¸¼Æ Âk¹s
- End If
- End With
- Unload Me
- End Sub
½Æ»s¥N½X |
|