Module: modMacros
Retrieving Microsoft Access macro names and running them
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the modMacros module
|
|
MacroNamesToArray
|
Procedure
|
Loads an array with the names of all the macros in the current database
|
|
MacroNamesToString
|
Procedure
|
Populates a string with the names of all the macros in the current database
|
|
RunAMacro
|
Procedure
|
Run a macro and trap for errors.
If an error occurs while running the macro, a value of False is returned. If no errors occur, a value of True is returned.
For more advanced use, you use the full syntax of the DoCmd RunMacro command:
Syntax: DoCmd RunMacro MacroName, RepeatCount, RepeatExpression
where:
RepeatCount - the number of times to run the macro
RepeatExpression - when this becomes false, the macro stops repeating
|
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
|