If no other session of Word is active when it is opened in the macroWord is not visible If the application needs to be shown it must be unhidden wdApp Visible True

When finished, it's a good idea to set the object variables to Nothing and release the memory being used by the application.

Compile Error: Can't Find Object or Library

If the referenced version of Word does not exist on the system, then an error message appears. View the Reference List and the missing object is highlighted with the words "MISSING" (see Figure 16.3).

If a previous version of Word is available, you can try running the program with that version referenced. Many objects are the same between versions.

Figure 16.3

Excel cannot compile if references are missing.

Figure 16.3

Excel cannot compile if references are missing.

0 0

Post a comment