![]() |
Outlook custom properties
Hi,
Anyone know how to add custom properties into Outlook [msg file] from macro? I already try some solution provided but still not able to solve this problem. This are the example code from "http://support.microsoft.com/kb/907985 " Set myProp = myItem.UserProperties.Add("MyPropName", olText) I hope someone can help me on this problem. Thank You. Sorry if someone post this solution before. Regards, MC |
Outlook custom properties
Hi Mcafe,
Anyone know how to add custom properties into Outlook [msg file] from macro? I already try some solution provided but still not able to solve this problem. This are the example code from "http://support.microsoft.com/kb/907985 " Set myProp = myItem.UserProperties.Add("MyPropName", olText) What exactly is your problem? You do not assign a value, is that intended? myProp.Value = "Hello World" myItem.Save -- SvenC |
Outlook custom properties
Do you mean a message in one of the Outlook folders or a standalone MSG
file? -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Mcafe" wrote in message ... Hi, Anyone know how to add custom properties into Outlook [msg file] from macro? I already try some solution provided but still not able to solve this problem. This are the example code from "http://support.microsoft.com/kb/907985 " Set myProp = myItem.UserProperties.Add("MyPropName", olText) I hope someone can help me on this problem. Thank You. Sorry if someone post this solution before. Regards, MC |
Outlook custom properties
I already assign the value, the custom properties still blank.
"SvenC" wrote: Hi Mcafe, Anyone know how to add custom properties into Outlook [msg file] from macro? I already try some solution provided but still not able to solve this problem. This are the example code from "http://support.microsoft.com/kb/907985 " Set myProp = myItem.UserProperties.Add("MyPropName", olText) What exactly is your problem? You do not assign a value, is that intended? myProp.Value = "Hello World" myItem.Save -- SvenC |
Outlook custom properties
Hi,
is standalone MSG file. "Dmitry Streblechenko" wrote: Do you mean a message in one of the Outlook folders or a standalone MSG file? -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Mcafe" wrote in message ... Hi, Anyone know how to add custom properties into Outlook [msg file] from macro? I already try some solution provided but still not able to solve this problem. This are the example code from "http://support.microsoft.com/kb/907985 " Set myProp = myItem.UserProperties.Add("MyPropName", olText) I hope someone can help me on this problem. Thank You. Sorry if someone post this solution before. Regards, MC |
Outlook custom properties
What exactly does not work? If you are using Outlook 2007, use
Namespace.OpenSharedItem to open the MSG file. If you are using and older version of Outlook, you can use plug Redemption (url) below - use rDOSession.GetMessageFromMsgFile; see http://www.dimastr.com/redemption/rdo/rdosession.htm /plug -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Mcafe" wrote in message ... Hi, is standalone MSG file. "Dmitry Streblechenko" wrote: Do you mean a message in one of the Outlook folders or a standalone MSG file? -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Mcafe" wrote in message ... Hi, Anyone know how to add custom properties into Outlook [msg file] from macro? I already try some solution provided but still not able to solve this problem. This are the example code from "http://support.microsoft.com/kb/907985 " Set myProp = myItem.UserProperties.Add("MyPropName", olText) I hope someone can help me on this problem. Thank You. Sorry if someone post this solution before. Regards, MC |
All times are GMT +1. The time now is 02:45 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com