#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default 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
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"