add a field in a outlook view control 
Author Message
 add a field in a outlook view control

Quote:
>-----Message d'origine-----
>1) No. What's the exact text of the error?

>2) The field you add must be available in the folder.

1)in french:
"erreur systme&H80004002(-2147467202). Cette interface
n'est pas prise en charge. "

2) So, with a base field ,for example "fullname", the
property code is "urn:schemas:contacts:cn". But, for my
field "tarifBase", what is the code property to add at
the "viewxml"??
Or an other possibility, how add or remove field in a
folder contact, with a macro of course? (not with the
command "display fields ..." )

Thanks
.



Tue, 12 Oct 2004 19:14:50 GMT  
 add a field in a outlook view control
For a user-defined field named "tarifBase", the property code would be:

"http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/" & "tarifBase"

Quote:
> Or an other possibility, how add or remove field in a
> folder contact, with a macro of course? (not with the
> command "display fields ..." )

I'm not quite sure what you're looking for here. Do you mean how to add a user-defined field to a folder? If so, this is a code snippet to add a new text property named Project to the Tasks folder:

        ' add new property to folder
        Set olApp = CreateObject("Outlook.Application")
        Set objNS = olApp.GetNamespace("MAPI")
        Set objTaskFldr = objNS.GetDefaultFolder(olFolderTasks)
        Set objTask = objTaskFldr.Items.Add
        objTask.ItemProperties.Add Name:="Project", _
                                    Type:=olText, _
                                    AddToFolderFields:=True
        Set objTask = Nothing

--
Sue Mosher, Outlook MVP
   Outlook and Exchange Solutions
   at http://www.slipstick.com

Quote:

>-----Message d'origine-----
>1) No. What's the exact text of the error?

>2) The field you add must be available in the folder.

1)in french:
"erreur systme&H80004002(-2147467202). Cette interface
n'est pas prise en charge. "

2) So, with a base field ,for example "fullname", the
property code is "urn:schemas:contacts:cn". But, for my
field "tarifBase", what is the code property to add at
the "viewxml"??
Or an other possibility, how add or remove field in a
folder contact, with a macro of course? (not with the
command "display fields ..." )

Thanks
.



Tue, 12 Oct 2004 19:52:26 GMT  
 add a field in a outlook view control

Thanks you !!!



Tue, 12 Oct 2004 21:19:43 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. add a field in a outlook view filter

2. outlook view control and views/filters

3. Changing the calendar view in a Outlook view control

4. Change view in Outlook View Control (OVC)

5. Outlook View Control disappears after viewing item

6. Outlook View Control in Outlook 2002

7. Outlook Object and/or Outlook View Control

8. Outlook View Control & Outlook XP

9. Outlook Object Model in Access + Outlook View Control

10. Outlook Object and/or Outlook View Control

11. Add new column to Outlook's default view via macro

 

 
Powered by phpBB® Forum Software