Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Userform Exit button

Hello.
I want to re-programme the X button on a userform to alter the behaviour of
the button. I want to close the application instead of closing the form.

How can i do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Userform Exit button

Private Sub UserForm_Terminate()
Application.Quit
End Sub

Ray at work

"Luis" wrote in message
...
Hello.
I want to re-programme the X button on a userform to alter the

behaviour of
the button. I want to close the application instead of closing the

form.

How can i do this?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Userform Exit button

Use the QueryClose event.

--
Regards
Tom Ogilvy

"Luis" wrote in message
...
Hello.
I want to re-programme the X button on a userform to alter the behaviour

of
the button. I want to close the application instead of closing the form.

How can i do this?



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get userform Cancel button to invoke Exit Sub in calling macro? Craig Remillard New Users to Excel 1 November 19th 09 03:55 AM
how do i make a button from a userform exit onto the document in . Pieface New Users to Excel 1 April 17th 07 07:35 PM
Disable Exit button on a UserForm Noemi Excel Discussion (Misc queries) 1 September 14th 06 09:37 PM
How to disable the Exit Button of UserForm in Excel? Alex Excel Programming 3 December 19th 04 11:55 PM
Userform will not exit correctly Stuart[_5_] Excel Programming 2 August 27th 03 08:38 PM


All times are GMT +1. The time now is 09:45 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"