因此,此功能将有效地重新启动我的工作簿,但是,我设置为在工作簿打开时打开的用户表单并没有被踢出,我不确定为什么。我不知道它是否绕过了该功能或什么...
Private Sub CommandButton3_Click()
Dim sPath As String
Dim sName As String
sName = ThisWorkbook.Name
sPath = ThisWorkbook.Path
ThisWorkbook.Saved = True
Workbooks.Open Filename:=sPath & "\" & sName
''''at a minimum I need this userform to show and it wont when i run this funtion.
UserForm1.Show
End Sub