Public index1 '现在测得是可以在模块间传递,但是不能在不同窗体之间传递
Public aaa1
Private Sub UserForm_Initialize()
End Sub
Private Sub CommandButton1_Click()
aaa1 = 999
UserForm6.Show
End Sub
Private Sub CommandButton3_Click()
Debug.Print "aaa1= " & aaa1
End Sub
可测结束时,变量已经为空了,释放了
还不用再其他 form里去测
Private Sub UserForm_Terminate()
Debug.Print "结束时index1=" & index1
End Sub