Specifying the Object Type

When you create VB or VBA programs, it is strongly recommended to specify the object type.

For example, you should use:

Dim cls As PdOOM.Class

Instead of:

Dim cls

If you do not specify object type, you may encounter problems when you execute your program and debugging can be really difficult.

Shortcuts

If the model contains shortcuts, we recommend to use the following syntax: Dim obj as PdCommon.IdentifiedObject.

If the target model is closed, you will get a runtime error.