|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
楼主,你好,又是我,现在我用的是6-4.6版的,六行出入库确实太少了
刚刚下载了a出入库系统6-3(文本编码)20行 版本的,出现了图片附件中的错误,怎么修改
Private Sub CommandButton1_Click()
Dim soundName As String
If ComboBox1.Text = "" Or TextBox1.Text = "" Then
If ComboBox1 = "" Then
MsgBox "用户名不能为空!", 48, "〖出入库系统〗-提示"
ComboBox1.SetFocus
Exit Sub
ElseIf TextBox1 = "" Then
MsgBox "密码不能为空!", 48, "〖出入库系统〗-提示"
TextBox1.SetFocus
Exit Sub
End If
Else
ARR = Sheets("基础信息表").Range("U2:V" & Sheets("基础信息表").Range("M65536").End(3).Row)
For I = 1 To UBound(ARR)
If ARR(I, 1) = ComboBox1 And ARR(I, 2) = TextBox1.Text Then
MsgBox ComboBox1.Text & "您好!欢迎您使用本系统!", 64, "〖出入库系统〗-欢迎词"
Application.Visible = True
Unload Me
Exit Sub
End If
Next
End If
MsgBox "登录密码错误,请重新输入!", 48, "〖出入库系统〗-提示"
TextBox1.Text = ""
TextBox1.SetFocus
End Sub
Private Sub CommandButton2_Click()
Dim soundName As String
If MsgBox("确定要退出出入库系统吗?", 32 + vbYesNo, "〖出入库系统〗-提示") = vbYes Then
ThisWorkbook.Close False
Exit Sub
End If
End Sub
Private Sub UserForm_Initialize()
Label1.Caption = Sheets("基础信息表").Range("S2") & "库管系统"
ARR = Sheets("基础信息表").Range("U2:V" & Sheets("基础信息表").Range("M65536").End(3).Row) |
|