Trouble with exit

  • Thread starter Thread starter jose luis
  • Start date Start date
J

jose luis

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
 
Try this

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