我有两个问题.
当我按下esc按钮然后关闭Userform1
当我输入open的TextBox1则Userform2应该显示.还清楚TextBox1的Userform1自动.
我试过以下代码:
Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If textbox1.value = "open" then
userform2.show
textbox1.value =""
End If
End Sub
Run Code Online (Sandbox Code Playgroud)