Outlook custom properties

  • Thread starter TWNhZmU
  • Start date Views 2,851
Status
Not open for further replies.
T

TWNhZmU

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
 
S

SvenC

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
 
D

Dmitry Streblechenko

Do you mean a message in one of the Outlook folders or a standalone MSG

file?

Dmitry Streblechenko (MVP)

-

"Mcafe" <Mcafe> wrote in message

news:46F3F29C-857B-4A1C-94ED-E0D88723465D@microsoft.com...
> 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
 
T

TWNhZmU

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

>
 
T

TWNhZmU

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)
>

>

>

> -
> "Mcafe" <Mcafe> wrote in message
> news:46F3F29C-857B-4A1C-94ED-E0D88723465D@microsoft.com...
> > 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


>
 
D

Dmitry Streblechenko

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)

-

"Mcafe" <Mcafe> wrote in message

news:119C6245-3EAC-4CEE-8CE7-7F6A002CC9DD@microsoft.com...
> 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)
> >

> >

> >

> > -
> > "Mcafe" <Mcafe> wrote in message
> > news:46F3F29C-857B-4A1C-94ED-E0D88723465D@microsoft.com...
> > > 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

>

>
>>
 
Status
Not open for further replies.
Top