Trouble with exit

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

jose luis

Hello,

I trying to detect if the aplication is running on a Mac

Private Sub Workbook_Open()
#If Mac Then
MsgBox "Sorry this Application runs in Windows only."
SwInicio = True
#End If

If SwInicio = False Then
"Windows intructions"
End if
End Sub

and in that case force the application to quit. Already try with Exi
Sub, but the program jumps to the next subs and continues running.

Any idea?

Thanks in advance.

jose lui
 
Hi Jose

Use this
Application.Operatingsystem

See Help for more details
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top