J
James
Our company uses a contact based custom form. The icon for this form
is the standard Note or post icon.
I wrote some macro code so that when a regular contact is selected and
the code run, it will change the contact's messageclass to our custom
form.
The code works in the that the class gets changed, but the icon
remains the standard contact icon.
Why doesn't the icon change? And how can I fix this?
THx,
J.
Code
-----------------
Sub ClassChanger()
Dim myItem
Dim objApp
Set objApp = CreateObject("Outlook.Application")
Set myItem = objApp.ActiveExplorer.Selection.Item(1)
myItem.MessageClass = "IPM.Contact.Contact Form"
myItem.Save
Set myItem = Nothing
Set objApp = Nothing
End Sub
is the standard Note or post icon.
I wrote some macro code so that when a regular contact is selected and
the code run, it will change the contact's messageclass to our custom
form.
The code works in the that the class gets changed, but the icon
remains the standard contact icon.
Why doesn't the icon change? And how can I fix this?
THx,
J.
Code
-----------------
Sub ClassChanger()
Dim myItem
Dim objApp
Set objApp = CreateObject("Outlook.Application")
Set myItem = objApp.ActiveExplorer.Selection.Item(1)
myItem.MessageClass = "IPM.Contact.Contact Form"
myItem.Save
Set myItem = Nothing
Set objApp = Nothing
End Sub