Test if application is running in IDE
The following is reprinted for archival purposes from Gary Beene's Information Center, with permission from Mr. Beene himself.
Public Function IsIDE() As Boolean
On Error Goto ExitHandler
Debug. Print 1 / 0 'doesn't compile, so doesn't execute in EXE
ExitHandler:
IsIDE = Err '1/0 gives error only in IDE. False = no error, True = error
End Function
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.