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 |
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 |
All times are GMT +1. The time now is 04:23 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com