McMillan's Visual Basic Code - Code Snippets - Test whether your application is running in the IDE
Code Snippets
Home



Test whether your application is running in the IDE

This snippent will allow you to test whether your App is running in the VB IDE

Option Explicit

Public Function RunningInIDE() As Boolean

   On Error GoTo eh

   Debug.Print 1 / 0

Exit Function
eh:

   RunningInIDE = True

End Function

© Copyright Notice

Unless otherwise stated, the code on this site is Copyright to Andrew McMillan. You may use this code in your projects (both commercial and non-commercial) but you are not permitted to republish this code in any form without the Author's prior consent.

The code on this site is supplied "as is" and no claims are made as to its soundness. The Author claims no responsibility for or liability from use of said source code.


Home