A Microsoft Outlook email forum. Outlook Banter

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 » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2003 Script How to put a value in ContactName



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 5th 06, 09:55 AM posted to microsoft.public.outlook.program_vba
news.microsoft.com
external usenet poster
 
Posts: 65
Default Outlook 2003 Script How to put a value in ContactName

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  
Old October 5th 06, 02:54 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2003 Script How to put a value in ContactName

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  
Old October 6th 06, 10:09 AM posted to microsoft.public.outlook.program_vba
news.microsoft.com
external usenet poster
 
Posts: 65
Default Outlook 2003 Script How to put a value in ContactName

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




  #4  
Old October 6th 06, 02:58 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2003 Script How to put a value in ContactName

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




  #5  
Old October 7th 06, 12:32 AM posted to microsoft.public.outlook.program_vba
bbnimda
external usenet poster
 
Posts: 29
Default Outlook 2003 Script How to put a value in ContactName

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  
Old October 7th 06, 12:45 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2003 Script How to put a value in ContactName

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
Search this Thread:

Advanced Search
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 On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 10:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.