Using Script Libraries |
Once you have created or added a script library to the Script Editor, you can call it by name from any document-level event or object event. For example, if you want to call a script library named "MyLibrary1" using a function, you would enter the following code into your script:
Function MyLibrary1()
End Function
If you wanted to call "MyLibrary1" with a Sub, you would use the following code:
Sub MyLibrary1()
End Sub
As you add code to a script library, individual functions and subroutines will appear in "child" nodes under the Script Library name. You can call the entire Library from script elsewhere in the document, or you can call the individual procedures and subroutines.