ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   xOut (https://www.excelbanter.com/excel-programming/311947-xout.html)

Kevin

xOut
 
I am developing an application in excel that uses a form
for data entry. I would like to hide (if possible) the x
at the top right to prevent the user from closing the form
unless they do it through a button I have created. I need
to be able to control how they get out of the form so I
can set certain properties, etc in the application.

Any help would be greatly appreciated!

Kevin

No Name

xOut
 
Hi Kevin:

Can't you just transfer the code behind your command
button to the form's terminate event?

gareth

-----Original Message-----
I am developing an application in excel that uses a form
for data entry. I would like to hide (if possible) the x
at the top right to prevent the user from closing the

form
unless they do it through a button I have created. I need
to be able to control how they get out of the form so I
can set certain properties, etc in the application.

Any help would be greatly appreciated!

Kevin
.


Tom Ogilvy

xOut
 
Using the queryclose event would be easier.

--
Regards,
Tom Ogilvy


"Kevin" wrote in message
...
I am developing an application in excel that uses a form
for data entry. I would like to hide (if possible) the x
at the top right to prevent the user from closing the form
unless they do it through a button I have created. I need
to be able to control how they get out of the form so I
can set certain properties, etc in the application.

Any help would be greatly appreciated!

Kevin





All times are GMT +1. The time now is 09:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com