ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to clear a form from the screen (https://www.excelbanter.com/excel-programming/318872-how-clear-form-screen.html)

GordonNewBie

How to clear a form from the screen
 
Hi,

I need to have a cancel button on my form that removes it from the screen. I
don't always want to click the x in the corner.

Is this possible?

Thanks in Advance
Gordon

Ron de Bruin

How to clear a form from the screen
 
Hi

Add a button on your userform with a macro with this line

Unload Me

And in the properties of the button set Cancel to True

--
Regards Ron de Bruin
http://www.rondebruin.nl


"GordonNewBie" wrote in message ...
Hi,

I need to have a cancel button on my form that removes it from the screen. I
don't always want to click the x in the corner.

Is this possible?

Thanks in Advance
Gordon





All times are GMT +1. The time now is 10:00 PM.

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