>Both Excel and Word (as well as other Office components) expose their functionality as COM objects, with a set of methods and properties. Not all applications do this. The Paint program is an example of an app that doesn't. This functionality, if present, should noted in the application's docs.
Thank you
Imagination is more important than knowledge