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


Hi,

I have a subroutine in which i am using an if statement. If case is not
satisfied, exit sub. - I'd like to change this to *exit program * or
*terminate program execution*.

At the moment, I'm using "Exit Sub", but I am going to nest this sub
within another.

Is there a similar command to exit the program


--
PLPE
------------------------------------------------------------------------
PLPE's Profile: http://www.excelforum.com/member.php...o&userid=23856
View this thread: http://www.excelforum.com/showthread...hreadid=387509

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 611
Default exiting program

PLPE,

Presumably, you want to totally quit Excel.

If A = B then
Application.Quit
End If

There may be messages about saving unsaved files and stuff. See the help on
the Quit method (put cursor at Quit and press F1) for some information on
that.
--
Earl Kiosterud
www.smokeylake.com

"PLPE" wrote in message
...

Hi,

I have a subroutine in which i am using an if statement. If case is not
satisfied, exit sub. - I'd like to change this to *exit program * or
*terminate program execution*.

At the moment, I'm using "Exit Sub", but I am going to nest this sub
within another.

Is there a similar command to exit the program


--
PLPE
------------------------------------------------------------------------
PLPE's Profile:
http://www.excelforum.com/member.php...o&userid=23856
View this thread: http://www.excelforum.com/showthread...hreadid=387509



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default exiting program


thanks Earl


--
PLPE
------------------------------------------------------------------------
PLPE's Profile: http://www.excelforum.com/member.php...o&userid=23856
View this thread: http://www.excelforum.com/showthread...hreadid=387509

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
Exiting Excel MEAD5432 Excel Discussion (Misc queries) 2 December 7th 07 11:05 PM
Exiting Worksheet Evan Excel Discussion (Misc queries) 1 February 11th 05 06:06 PM
merging excel program with tdc finance program judy Excel Programming 0 November 5th 03 08:01 PM
Exiting a workbook Dick Kusleika Excel Programming 0 August 15th 03 05:30 PM
Exiting a workbook John Wilson Excel Programming 0 August 15th 03 04:43 PM


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

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

About Us

"It's about Microsoft Excel"