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


Thank you Ron,


The application recognizes the Mac and shows the MsgBox, but after tha
I need to quit the application to prevent the user to continue workin
with it. I set a Boolean var as flag to detect when the program wen
into the #If MAC but it seems not to be working. Is there a way t
force the app to Close after the MsgBox?

Thanks again for your help.

Regards

jose lui

--
jose lui
-----------------------------------------------------------------------
jose luis's Profile: http://www.excelforum.com/member.php...fo&userid=1331
View this thread: http://www.excelforum.com/showthread.php?threadid=26172

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Trouble with exit

Try this

#If Mac Then
MsgBox "Sorry this Application runs in Windows only."
ThisWorkbook.Close False
Exit Sub
End If



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


"jose luis" wrote in message ...

Thank you Ron,


The application recognizes the Mac and shows the MsgBox, but after that
I need to quit the application to prevent the user to continue working
with it. I set a Boolean var as flag to detect when the program went
into the #If MAC but it seems not to be working. Is there a way to
force the app to Close after the MsgBox?

Thanks again for your help.

Regards

jose luis


--
jose luis
------------------------------------------------------------------------
jose luis's Profile: http://www.excelforum.com/member.php...o&userid=13312
View this thread: http://www.excelforum.com/showthread...hreadid=261729



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
Run when exit PH NEWS Excel Worksheet Functions 1 July 18th 06 03:53 PM
Trouble with exit jose luis Excel Programming 1 September 20th 04 07:33 PM
exit sub mike allen[_2_] Excel Programming 4 August 6th 04 05:39 PM
If a called sub exit, how to the caller exit right away? luvgreen[_4_] Excel Programming 4 February 24th 04 05:06 PM
Exit Sub? Eva Shanley[_2_] Excel Programming 3 December 24th 03 02:15 PM


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