"The code is exactly
how I would like to write code and the algorithms used are very
efficient and well-documented."
Van T. Dinh, Microsoft MVP
|
|
Module: modVB_Application
Routines for working with VB modules and IDE. This includes handling chores such as ensuring that all forms in the application are closed before exiting, and testing the open status of forms in your and other applications.
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the modVB_Application module
|
|
AnyModulesOpen
|
Procedure
|
Determines if any modules are open in the VBE.
|
|
CloseAllVBEModules
|
Procedure
|
Closes all open modules in VBE.
|
|
CloseForms
|
Procedure
|
Closes all forms in the application. The calling form is closed last.
If you want to close your application without using the 'END' statement, and you have many forms which may or may not be open, it can be difficult to completely close an application. The application does not stop until all forms are unloaded.
|
|
CloseVBEWindow
|
Procedure
|
Closes the VBE window
|
|
GetOpenModuleCount
|
Procedure
|
Returns the number of modules open in the VBE
|
|
IsAppRunningTitled
|
Procedure
|
Checks to see if there is an application running with the specified caption.
This function finds exact matches only. For example, if you have a copy of Notepad running with no document loaded, you would need to search on the value "Untitled - Notepad", not just "Notepad".
|
|
IsCurrentProjectSaved
|
Procedure
|
Determines if the current VBE project is in a saved state
|
|
IsFormLoaded
|
Procedure
|
Tests to see whether the default instance of a form is loaded.
If the default instance of a form is loaded, it will be in the Forms collection. This function tests to see whether a form of the specified name is in the collection.
|
|
IsModuleSaved
|
Procedure
|
Determines if the current module is in a saved state in the VBE.
|
|
RunningFromIDE
|
Procedure
|
Tests whether the program is currently running from the VB IDE, or from the compiled executable.
Requires an app with at least one form
|
Overview of Total Visual SourceBook
The source code in Total Visual
SourceBook includes modules and classes for Microsoft Access, Visual
Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily
add this professionally written, tested, and documented royalty-free code
into your applications to simplify your application development efforts.
Additional Resources
|
|