The simplest way to call a procedure is to name it in your code, just as you do with built-in keywords. The following sections describe how to call Sub and Function procedures from other procedures.
Note
If you want a particular procedure to run automatically, without being called explicitly, at every occurrence of a specific event — such as opening a file, clicking an object, or activating a sheet — you should make the procedure an automatic procedure or an OnEvent procedure. For information about creating automatic and OnEvent procedures, see Chapter 11, "Automatic Procedures and OnEvent Procedures."