Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Outlook custom properties (http://www.outlookbanter.com/outlook-vba/90956-outlook-custom-properties.html)

Mcafe May 29th 09 01:46 AM

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

SvenC[_2_] May 29th 09 08:00 AM

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


Dmitry Streblechenko May 29th 09 08:21 AM

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




Mcafe June 1st 09 02:16 AM

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



Mcafe June 1st 09 02:16 AM

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





Dmitry Streblechenko June 1st 09 08:49 PM

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