用公共变量也不行,不同的userform之间无法传递 public 变量!
Private Sub UserForm_Initialize()
Me.StartUpPosition = 0
Me.Top = 200
Me.Left = 500
userform2_s = 1
Debug.Print "userform2_s= " & userform2_s
Private Sub UserForm_Terminate()
userform2_s = 0
Debug.Print "userform2_s= " & userform2_s
End Sub
暂时只能每次切换关闭了。。。。
其他直接判断界面是否关闭的系统函数没有?
需要自己写自定义函数?