当宏仍在导入工作表时,我创建了一个用户窗体来显示进度条

问题是用户可以按下将关闭的红色[X]按钮并中断完成的处理.
有没有办法隐藏这个厄运的红色按钮,以便潜在用户在运行时没有任何令人困惑的按钮.
编辑:
我试过这个
'Find the userform's Window
Private Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" ( _
ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
'Get the current window style
Private Declare Function GetWindowLong Lib "user32" _
Alias "GetWindowLongA" ( _
ByVal hWnd As Long, _
ByVal nIndex As Long) As Long
'Set the new window style
Private Declare Function SetWindowLong Lib "user32" _
Alias "SetWindowLongA" ( _
ByVal hWnd …Run Code Online (Sandbox Code Playgroud) 我有一个名为SheetBox的Userform
SheetBox包含一个3页的多页窗口
用于选择要导入的页面的"page1"
"page2"包含
用于选择要保护的页面的伪进度条"page3"
我现在需要的是一种在单击工作表上的按钮时打开Userform时打开特定页面的方法
例如:
ImportBttn打开userform的
第1页,ProtctBttn打开userform的第 3 页
我这样做是为了减少我需要创建的userform数量,而不是创建3个单独的用户表单.这也有助于减少文件大小.