Outlook custom properties

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.
Thread starter Similar threads Forum Replies Date
A How to show newly created extended properties using EWS Managed API in my outlook custom form contac Using Outlook 1
K Accessing contact's custom properties in a Outlook 2007 form region Outlook VBA and Custom Forms 1
I Error saving screenshots in a custom form in outlook 2016, outlook 365 - ok in outlook 2013, outlook 2010 Outlook VBA and Custom Forms 5
S Outlook Custom Form Scripting only working when clicking on "Run this form" Outlook VBA and Custom Forms 2
C Custom Outlook Form - Populate Information from Radio Button / Check Box Using Outlook 0
Z Outlook Custom Form: Adding Dropdown(Project Code) at the end of subject Outlook VBA and Custom Forms 0
P Outlook custom fields "events" Using Outlook 0
D create an html table in outlook custom form 2010 using vba in MsAccess Outlook VBA and Custom Forms 7
Potty Ash MS Outlook 2010 custom form - validation or formula to request user to check a checkbox Outlook VBA and Custom Forms 16
H Custom autoforwarding, sending mail through outlook office 365 Using Outlook 1
G How do I create a custom pick list in VB for an outlook automated email? Outlook VBA and Custom Forms 1
L Outlook Custom Form Using Outlook 2
B Outlook Custom forms Using Outlook 0
Diane Poremsky Outlook.com Custom Domains New Slipstick.com Articles 4
Diane Poremsky The custom form cannot be opened. Outlook will use an Outlook form instead. New Slipstick.com Articles 0
P Custom Outlook form_Validations in combo box Outlook VBA and Custom Forms 0
Diane Poremsky Create a custom field for Outlook messages New Slipstick.com Articles 0
Diane Poremsky Create a Custom Numbering Field for Outlook messages New Slipstick.com Articles 0
J Can Click to Drag Custom Form Field But Cannot Drop When Designing in Outlook 2007 Outlook VBA and Custom Forms 2
D Change sender name outlook vba 2010 Custom Userform Outlook VBA and Custom Forms 1
G Adding a contact to Outlook with a custom form using Access VBA Outlook VBA and Custom Forms 1
A From box in custom outlook Form Outlook VBA and Custom Forms 0
N Export Outlook custom forms fields to excel Outlook VBA and Custom Forms 1
I Create custom Outlook 2013 Rule in Office 365 Outlook VBA and Custom Forms 5
Diane Poremsky Designing Custom Outlook Forms New Slipstick.com Articles 0
L Outlook 2007 Custom Form and Toolbar Not Working Using Outlook 5
divan Outlook 2007 - Replace email body with custom text Using Outlook 9
C Outlook Custom Contact Form Attach Files in new notes fields Outlook VBA and Custom Forms 3
D Using Follup in Custom Forms Outlook 2013 Using Outlook 9
J Outlook 2010: can't forward appointment on custom form Using Outlook 1
S Custom Outlook Form 2013 Displaying fields incorrectly Outlook VBA and Custom Forms 1
E Create a URL hyperlink in an Outlook custom form? Outlook VBA and Custom Forms 2
R Outlook Custom form check if there an attachment Outlook VBA and Custom Forms 2
M Outlook 2013 won't convert Excel contacts into Outlook contacts using my custom form Using Outlook 3
M moving custom field data between outlook and excel? Using Outlook 4
G Custom Form code not working - Outlook 2010 Outlook VBA and Custom Forms 2
Rijotech Outlook 2013 Appointment list custom positions? Using Outlook 2
M does outlook 2013/365 on mac support custom forms? Outlook VBA and Custom Forms 1
R Viewing & Using custom forms/tasks in Outlook 2013 Using Outlook 1
S Setting up Outlook 2010 to work with custom domain outlook.com account BCM (Business Contact Manager) 3
P Outlook 2010 custom form olk control font size increases everytime form is published Outlook VBA and Custom Forms 1
Z outlook 2007 - opening a contact from the search results doesn't use the custom form Using Outlook 10
S Seeing Custom Fields in Contacts (Outlook 2010) Using Outlook 0
F Outlook 2010 - Need help with a custom field. Using Outlook 3
P accessing custom task pane with Outlook ActiveInspector Using Outlook 1
R Static Resources in Custom Outlook Appointment Form Using Outlook 2
S Outlook Custom form - selecting text in read page Using Outlook 0
Commodore Outlook.com with custom/own domain Using Outlook 4
S Outlook custom checkbox not changing value Using Outlook 0
F Outlook 2010 custom font style duplicates itself every time I save a task Using Outlook 0
Similar threads


















































Top