A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook custom properties



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 29th 09, 01:46 AM posted to microsoft.public.outlook.program_vba
Mcafe
external usenet poster
 
Posts: 4
Default 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
Ads
  #2  
Old May 29th 09, 08:00 AM posted to microsoft.public.outlook.program_vba
SvenC[_2_]
external usenet poster
 
Posts: 40
Default 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

  #3  
Old May 29th 09, 08:21 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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



  #4  
Old June 1st 09, 02:16 AM posted to microsoft.public.outlook.program_vba
Mcafe
external usenet poster
 
Posts: 4
Default 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


  #5  
Old June 1st 09, 02:16 AM posted to microsoft.public.outlook.program_vba
Mcafe
external usenet poster
 
Posts: 4
Default 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




  #6  
Old June 1st 09, 08:49 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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






 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Properties on Custom Button from another Custom ButtonsonAction Event [email protected] Add-ins for Outlook 0 May 30th 08 04:30 AM
Exchange Custom Properties to Outlook Form Gareth Williams Outlook - Using Forms 1 July 5th 07 04:30 PM
Setting custom properties to an outlook folder Michael Jennings Outlook and VBA 3 March 16th 07 05:50 AM
Setting custom properties to an outlook folder Michael Jennings Outlook - General Queries 3 March 15th 07 01:24 PM
MSG Custom properties on right click custom tab [email protected] Add-ins for Outlook 1 February 1st 06 06:00 PM


All times are GMT +1. The time now is 02:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.