![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Hi all,
I made un custom task Form, I added a combo whith companies, I want to automatically fill the fild ContactNames with a specific Name based on the choice of the companies I've not found the way to fill the contactNames I tried the name of the text box "_RecipientControl1" and the StatusUpdateRecipients StatusOncompletionRecipients but no one work's Someone can help plz |
#2
|
|||
|
|||
![]()
I'm not clear on just what you're trying to do. ContactNames is a string property, so you assign its value simply as:
Item.ContactNames = "name1, name 2" Are you thinking instead of the Contacts box at the bottom of the task form? That exposes the Links collection, which uses this syntax: Item.Links.Add theContactItem where theContactItem is an Outlook contact. In other words, you'd need to create (or return) a contact first, before you can add it as a linked contact to the Links collection. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "news.microsoft.com" wrote in message ... Hi all, I made un custom task Form, I added a combo whith companies, I want to automatically fill the fild ContactNames with a specific Name based on the choice of the companies I've not found the way to fill the contactNames I tried the name of the text box "_RecipientControl1" and the StatusUpdateRecipients StatusOncompletionRecipients but no one work's Someone can help plz |
#3
|
|||
|
|||
![]()
Hi Sue,
I used ContactNames before and it work at 50% (Item.ContactNames ) The Pb is when I set a value to the contactnames by a script it doesn't display the my value in the contact text box, but if a save this task and reopen it at this time myvalue is displayed in the ContactNames text box tks for help "Sue Mosher [MVP-Outlook]" a écrit dans le message de news: ... I'm not clear on just what you're trying to do. ContactNames is a string property, so you assign its value simply as: Item.ContactNames = "name1, name 2" Are you thinking instead of the Contacts box at the bottom of the task form? That exposes the Links collection, which uses this syntax: Item.Links.Add theContactItem where theContactItem is an Outlook contact. In other words, you'd need to create (or return) a contact first, before you can add it as a linked contact to the Links collection. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "news.microsoft.com" wrote in message ... Hi all, I made un custom task Form, I added a combo whith companies, I want to automatically fill the fild ContactNames with a specific Name based on the choice of the companies I've not found the way to fill the contactNames I tried the name of the text box "_RecipientControl1" and the StatusUpdateRecipients StatusOncompletionRecipients but no one work's Someone can help plz |
#5
|
|||
|
|||
![]()
Is there a way to put a value (exp: ), when
compagnyABC is selected (by combo) in the compagnies property ? tks "Sue Mosher [MVP-Outlook]" a écrit dans le message de news: ... I'm not sure what "contact text box" you're referring to. The Contacts box on the main page (not a text box, but a recipients control) is associated with the Links collection, not the ContactNames property. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "news.microsoft.com" wrote in message ... Hi Sue, I used ContactNames before and it work at 50% (Item.ContactNames ) The Pb is when I set a value to the contactnames by a script it doesn't display the my value in the contact text box, but if a save this task and reopen it at this time myvalue is displayed in the ContactNames text box tks for help "Sue Mosher [MVP-Outlook]" a écrit dans le message de news: ... I'm not clear on just what you're trying to do. ContactNames is a string property, so you assign its value simply as: Item.ContactNames = "name1, name 2" Are you thinking instead of the Contacts box at the bottom of the task form? That exposes the Links collection, which uses this syntax: Item.Links.Add theContactItem where theContactItem is an Outlook contact. In other words, you'd need to create (or return) a contact first, before you can add it as a linked contact to the Links collection. "news.microsoft.com" wrote in message ... Hi all, I made un custom task Form, I added a combo whith companies, I want to automatically fill the fild ContactNames with a specific Name based on the choice of the companies I've not found the way to fill the contactNames I tried the name of the text box "_RecipientControl1" and the StatusUpdateRecipients StatusOncompletionRecipients but no one work's Someone can help plz |
#6
|
|||
|
|||
![]()
Probably, but the details will depend on exactly what you mean by "put a value ... when ... selected (by combo) ... " etc. See http://www.outlookcode.com/d/propsyntax.htm
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "bbnimda" wrote in message ... Is there a way to put a value (exp: ), when compagnyABC is selected (by combo) in the compagnies property ? tks "Sue Mosher [MVP-Outlook]" a écrit dans le message de news: ... I'm not sure what "contact text box" you're referring to. The Contacts box on the main page (not a text box, but a recipients control) is associated with the Links collection, not the ContactNames property. "news.microsoft.com" wrote in message ... Hi Sue, I used ContactNames before and it work at 50% (Item.ContactNames ) The Pb is when I set a value to the contactnames by a script it doesn't display the my value in the contact text box, but if a save this task and reopen it at this time myvalue is displayed in the ContactNames text box tks for help "Sue Mosher [MVP-Outlook]" a écrit dans le message de news: ... I'm not clear on just what you're trying to do. ContactNames is a string property, so you assign its value simply as: Item.ContactNames = "name1, name 2" Are you thinking instead of the Contacts box at the bottom of the task form? That exposes the Links collection, which uses this syntax: Item.Links.Add theContactItem where theContactItem is an Outlook contact. In other words, you'd need to create (or return) a contact first, before you can add it as a linked contact to the Links collection. "news.microsoft.com" wrote in message ... Hi all, I made un custom task Form, I added a combo whith companies, I want to automatically fill the fild ContactNames with a specific Name based on the choice of the companies I've not found the way to fill the contactNames I tried the name of the text box "_RecipientControl1" and the StatusUpdateRecipients StatusOncompletionRecipients but no one work's Someone can help plz |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I put IE Favorites in Outlook 2003? | syl1985 | Outlook - Installation | 1 | September 5th 06 01:20 PM |
how do i put the send button into outlook 2003 email toolbar? | igorathepsychowoman | Outlook - Installation | 1 | August 27th 06 08:47 AM |
Script Not run in outlook 2003 | Joey | Outlook and VBA | 4 | May 19th 06 03:10 PM |
Script to delete duplcate messages in Outlook 2003 | David Sherman | Outlook and VBA | 10 | February 22nd 06 06:57 AM |
Outlook 2003 startup script error | [email protected] | Outlook - General Queries | 0 | January 24th 06 08:34 PM |