Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling the close box in Excel 1

Status
Not open for further replies.

VBRookie

Programmer
May 29, 2001
331
US
Hi,

Does anyone know how to disable or remove the close box using VBA? I'm opening up excel in my VB app and I don't want the user to close the spreadsheet by clicking on the close box. I only want them to be able to do it through the VB app.

Any help you can offer would be greatly appreciated.

Thanks,
- VB Rookie
 
If you want them to close it through VBA so that certain routines can be run it may be worth using the workbookbeforeclose event which will run if the user clicks the close button.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top