Test Document for Running MMP Via Automation

cavalcadehorehoundMechanics

Nov 5, 2013 (3 years and 10 months ago)

95 views

Test Document for Running MMP Via Automation


This document contains macros written in Visual Basic for Applications (VBA), the scripting language built into
Microsoft Office and many other programs. These macros demonstrate how to run and manipulate MMP r
emotely
via Automation. When started via Automation, MMP does not appear on the screen as it does when you run it
normally. Instead, it operates invisibly behind the scenes as an
Automation server
. The macros are examples of
Automation controllers
. You can

develop Automation controllers with any programming environment that supports
the Windows Component Object Model (COM). This includes tools such as Delphi and Visual Basic, as well as
VBA.



Notes:


-

To run one of this document's Visual Basic macros, cho
ose Tools | Macro | Macros (or press Alt+F8).


-

MMP must be installed in order to run these macros.


-

To view the Visual Basic macro code, choose Tools | Macro | Visual Basic Editor (or press Alt+F11).


-

To view the classes, methods and properties made
available by the MMP Automation server, choose View | Object
Browser (or press F2) from within the Visual Basic Editor. Then select the MMP object library from the list.


-

When you create new documents, spreadsheets or databases and you want to add Visual

Basic code to control the
MMP server, be sure to choose Tools | References from within the Visual Basic Editor and check the Manure
Management Planner Object Library in the list of references.