.UserProperties Help!!

  • Thread starter Thread starter =?iso-8859-1?Q?Cyrill_H=E4feli?=
  • Start date 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
 
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
 
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
 
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
 
"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
 
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
 
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
 
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
 
Back
Top