.UserProperties Help!!

  • Thread starter =?iso-8859-1?Q?Cyrill_H=E4feli?=
  • Start date
?

=?iso-8859-1?Q?Cyrill_H=E4feli?=

I want Save a User Task Field, from a Textfield in a VBA-Form

my code now:

With m_items
..UserProperties("txtAuftrag") = Me.txtAuftrag
..Save
End With


I think its right, but i don't go it

:-(

I need help


Thx
 
S

Sue Mosher [MVP]

What is the m_items object?

"txtAuftrag" sounds more like a control name than the name of an Outlook custom property. Does the property already exist in the item? If not, you must add it with the UserProperties.Add method, then set its value.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers


I want Save a User Task Field, from a Textfield in a VBA-Form

my code now:

With m_items
..UserProperties("txtAuftrag") = Me.txtAuftrag
..Save
End With


I think its right, but i don't go it

:-(

I need help


Thx
 
?

=?iso-8859-1?Q?Cyrill_H=E4feli?=

no i need better help, thx
Look at www.microsoft.com

Da stehts sicher irgendwo :) Cyrill.. schaffe ned schloofe.
I want Save a User Task Field, from a Textfield in a VBA-Form

my code now:

With m_items
.UserProperties("txtAuftrag") = Me.txtAuftrag
.Save
End With


I think its right, but i don't go it

:-(

I need help


Thx
 
C

Cyrill Häfeli

m_items is

Outlook.TaskItem


What is the m_items object?

"txtAuftrag" sounds more like a control name than the name of an Outlook
custom property. Does the property already exist in the item? If not, you
must add it with the UserProperties.Add method, then set its value.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers


I want Save a User Task Field, from a Textfield in a VBA-Form

my code now:

With m_items
..UserProperties("txtAuftrag") = Me.txtAuftrag
..Save
End With


I think its right, but i don't go it

:-(

I need help


Thx
 
C

Cyrill Häfeli

"txt Auftrag" , It is a control name, i must assign to this




What is the m_items object?

"txtAuftrag" sounds more like a control name than the name of an Outlook
custom property. Does the property already exist in the item? If not, you
must add it with the UserProperties.Add method, then set its value.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers


I want Save a User Task Field, from a Textfield in a VBA-Form

my code now:

With m_items
..UserProperties("txtAuftrag") = Me.txtAuftrag
..Save
End With


I think its right, but i don't go it

:-(

I need help


Thx
 
S

Sue Mosher [MVP]

I'm not talking about txtAuftrag in your VBA form, but your usage of ..UserProperties("txtAuftrag").

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
C

Cyrill Häfeli

Yes, Me.txtAuftrag.Text is the VBA Form

but .UserProperties("txtAuftrag") with this i mean the control field in the
self made Outlookform.




I'm not talking about txtAuftrag in your VBA form, but your usage of
..UserProperties("txtAuftrag").

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP]

UserProperties is not used with controls. It is used with custom Outlook fields that you have defined on the item. Do you want to save the data with the item? If so, you need to specify what field (NOT CONTROL) to save it in. Please reread my earlier response and see http://www.slipstick.com/dev/propsyntax.htm .

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top