G
G-2008
Hi
Didn't know for sure if this question would be best posted in this forum or
an Excel forum, but not able to find it currently in either place. I have a
spreadsheet that accesses email templates (.msg) stored outside Outlook on
the local hard drive. It allows me to edit multiple templates at once
instead of having to edit each one individually. For example, if a manager
is replaced I can pull every template into the spreadsheet, find/replace the
old manager with the new, and save the templates back again.
Everything works perfectly unless there is an ambiguous email address. In
this case the template is simply saved as-is and each time the template is
used it requires me to resolve the ambiguity. I need to be able to invoke
the 'Check Names' dialog if an ambiguity is detected prior to saving changes
to a template, but can't figure out how to do that. Here is my latest
attempt:
Dim oAPP As Outlook.Application
Dim oMENU As Object
Dim oCMD As Object
Dim oMSG As MailItem
Set oMSG = Outlook.CreateItemFromTemplate(strFILE)
<edit recipients>
If Not oMSG.ResolveAll Then
Set oMENU = oAPP.ActiveInspector.CommandBars("Tools")
Set oCMD = oMENU.Controls("Check Names")
oCMD.Execute
End If
<save template>
I am using Office 2003 SP3 and just want the Check Names dialog box to open
so I can resolve Recipients prior to saving the template so I don't get
prompted every time I use the template. Can anyone help me out?
Thanks in advance.
Didn't know for sure if this question would be best posted in this forum or
an Excel forum, but not able to find it currently in either place. I have a
spreadsheet that accesses email templates (.msg) stored outside Outlook on
the local hard drive. It allows me to edit multiple templates at once
instead of having to edit each one individually. For example, if a manager
is replaced I can pull every template into the spreadsheet, find/replace the
old manager with the new, and save the templates back again.
Everything works perfectly unless there is an ambiguous email address. In
this case the template is simply saved as-is and each time the template is
used it requires me to resolve the ambiguity. I need to be able to invoke
the 'Check Names' dialog if an ambiguity is detected prior to saving changes
to a template, but can't figure out how to do that. Here is my latest
attempt:
Dim oAPP As Outlook.Application
Dim oMENU As Object
Dim oCMD As Object
Dim oMSG As MailItem
Set oMSG = Outlook.CreateItemFromTemplate(strFILE)
<edit recipients>
If Not oMSG.ResolveAll Then
Set oMENU = oAPP.ActiveInspector.CommandBars("Tools")
Set oCMD = oMENU.Controls("Check Names")
oCMD.Execute
End If
<save template>
I am using Office 2003 SP3 and just want the Check Names dialog box to open
so I can resolve Recipients prior to saving the template so I don't get
prompted every time I use the template. Can anyone help me out?
Thanks in advance.