Using WSH VBscript with MS Word and Outlook. Need to know what version of Office in use so the "CreateObject" will not fail.
Example that works with older versions of Outlook:
Set objOL = CreateObject("Outlook.Application")
Syntax required by Office 2003:
Set objOL = CreateObject("Outlook.Application.11")
Thanks for any ideas.