A Microsoft Office (Excel, Word) forum. OfficeFrustration

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 » OfficeFrustration forum » Microsoft Outlook » Contacts
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to Delete Custom Fields Programmatically in Contact



 
 
Thread Tools Display Modes
  #1  
Old June 28th, 2004, 01:41 AM
Ajay
external usenet poster
 
Posts: n/a
Default How to Delete Custom Fields Programmatically in Contact

Hi,
A custom Field was created using a COMAddin in Outlook.
I tried to delete the custom Field using the
userproperties of Item by specifying
With Item
.userproperties.Remove("Blah")
End With
Item.Save

I see the the same custom Field in the Form design view
under the tab All Fields by for the user-defined field for
the folder.
I tried to do the same thing using CDO.
I am not able to solve this problem.
I would be pleased if anybody there could help me out.

Thanks

Ajay

  #2  
Old June 28th, 2004, 04:56 PM
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: n/a
Default How to Delete Custom Fields Programmatically in Contact

You can delete a custom property from an item programmatically, but not from
a folder. A folder's custom field definitions are stored in a hidden message
in an undocumented binary format. You will need to delete the field from the
folder manually.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Ajay" wrote in message
...
Hi,
A custom Field was created using a COMAddin in Outlook.
I tried to delete the custom Field using the
userproperties of Item by specifying
With Item
.userproperties.Remove("Blah")
End With
Item.Save

I see the the same custom Field in the Form design view
under the tab All Fields by for the user-defined field for
the folder.
I tried to do the same thing using CDO.
I am not able to solve this problem.
I would be pleased if anybody there could help me out.

Thanks

Ajay



 




Thread Tools
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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
viewing database info in custom contact form Mike Abrahamson Contacts 2 June 15th, 2004 06:20 PM
Macro Custom Buttons - How do I delete them Sheila Worksheet Functions 5 June 1st, 2004 02:40 PM
Custom Contact fields or pages Chris Contacts 2 May 24th, 2004 10:36 PM
Custom Fields Jennifer Dargis Contacts 1 May 20th, 2004 07:39 PM
How do you format custom fields designed for custom contact forms? Debalan Contacts 4 May 19th, 2004 11:54 PM


All times are GMT +1. The time now is 06:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.