I have an excel (2013) file that automatically opens a userform. I want it to show only the userform and hide only that one specific workbook, but it either hides all the workbooks that were open before or show all of them, including the one I want hidden. I tried to use:
Application.visible = false
With ActiveWindow
Application.visible=false
End with
ActiveWindow.application.visible = false
ActiveWindow.visible = false
Windows("workbookname.xlsm").visible = false
None worked. If anyone has any idea I'd be very thankfull. Thank you.