I have a
vb application that calls Outlook with an attachment (crystal report). It works fine except for that I do not always know what version of Outlook users have so the Outlook.exe could be in the Office10, Office11 or Office12 folder. Is there a good way to determine or scan to see what version of Outlook is installed and then build the path?
Here is what I have today (which points to Outlook 2007). Some users have Outlook 2003 installed)
Code:
Dim myOutlookString As String = """C:\Program Files\Microsoft Office\OFFICE11\Outlook.exe"" /a """ + myReport + """"
Shell(myOutlookString)