Change that line to be:
That should work regardless of which version of Office is installed.
However, I'd like to point out that some functions change between versions of Office. That might create some issues for you if you're not anticipating those changes. (Speaking from personal experience on this.)
UPDATE:Corrected the use statement to call the correct object library. Left original with strike through for historical reference.
In reply to Re: How to use win32::OLE with multiple versions of Microsoft Office?
by dasgar
in thread How to use win32::OLE with multiple versions of Microsoft Office?
by frida
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |