I have an ADP application, and our application is used by several users with several versions of outlook. (2003-2007) now to avoid conflicts, I would like to add a function in my sendemail routine, that adds the reference (depending on the outlook version), and activate them.
I have the function to add them...
But as soon as the reference is added, I doesn't find how to activate it ?
So my solution would be something
if reference exist....
if outlook version = ....
active reference 12
active reference 11
execute sendmail code
Thanks in advance
Function ReferenceFromFile(strFileName As String) As Boolean
Dim ref As Reference
On Error GoTo Error_ReferenceFromFile
' Create new reference.
Set ref = References.AddFromFile(strFileName)
ReferenceFromFile = True
MsgBox Err & ": " & Err.Description
ReferenceFromFile = False