I have not used combobox with macros, but they use case statements so you should be able to. The lady has a code sample at Select from a list of subjects before sending a message - Slipstick Systems that should point you in the right direction.
Dim your object at the beginning -
Dim oItem as Outlook.MailItem
put this in the case statement -
Set oItem = Application.CreateItem("C:\template.oft")
put this is at the end of the case -
oItem .Display
You could use the case to assign variables, something like this:
Case 0
strTemplate = "templatename0"
Case 1
strTemplate = "templatename1"
Dim oItem as Outlook.MailItem
Set oItem = Application.CreateItem("C:\path\to\template\" & strTemplate & ".oft")
oItem .Display



LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks