|
楼主 |
发表于 2010-6-13 16:02
|
显示全部楼层
代码是
Private Sub CommandButton1_Click() '''''''系统登陆确定按钮
Application.ScreenUpdating = False
If Me.ComboBox1.Text = "" Then GoTo LINE10:
Sheet9.Range("A2").Value = Me.ComboBox1.Text
If Me.TextBox1.Text = Sheets("系统设置").Cells(2, 2).Value Then
MsgBox Me.ComboBox1 & " ,欢迎你使用本系统!", vbInformation, "系统提示"
Unload Login
Unload frmFace
Application.Visible = True
Else
LINE10:
MsgBox "密码错误,你无权使用本系统!", vbExclamation, "系统提示"
ThisWorkbook.Close savechanges:=False
End If
Application.ScreenUpdating = True
End Sub |
|