Add a name in the TO: address with code

Reply

Join Date: Jan 2005
Posts: 23
Reputation: dreyes67 is an unknown quantity at this point 
Solved Threads: 0
dreyes67 dreyes67 is offline Offline
Newbie Poster

Add a name in the TO: address with code

 
0
  #1
Apr 6th, 2005
In my form I have a field (Reqby) that will request the name of the Dept. Manager. Is there a way that I can take that information and add it to the TO: line?

The TO: line already has a name in and I want to add the Dept. Managers to it.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Add a name in the TO: address with code

 
0
  #2
Apr 6th, 2005
The TO line of a VB Form?
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 23
Reputation: dreyes67 is an unknown quantity at this point 
Solved Threads: 0
dreyes67 dreyes67 is offline Offline
Newbie Poster

Re: Add a name in the TO: address with code

 
0
  #3
Apr 6th, 2005
The form is a MS Outlook form. I have attached the MS Outlook where I am requesting the name of the Dept Manager. Then I want to see if I can add it to the TO: line at the top.


Sub Update30()
Dim recip
Set recip = Item.Recipients0.Add (Item.userproperties.Find("Deptman").Value)
recip.type = olTo
End Sub


If I wanted to use Global Address List instead of Recipents what is the "code" for it
Attached Thumbnails
reqby.jpg  
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Add a name in the TO: address with code

 
0
  #4
Apr 7th, 2005
What is the NAME of that textbox?
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 23
Reputation: dreyes67 is an unknown quantity at this point 
Solved Threads: 0
dreyes67 dreyes67 is offline Offline
Newbie Poster

Re: Add a name in the TO: address with code

 
0
  #5
Apr 7th, 2005
In the example I used the name DEPTMAN
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Add a name in the TO: address with code

 
0
  #6
Apr 7th, 2005
Hmn.... I'm hoping I'm not off on a limb here, but check this URL:
http://www.microsoft.com/exceldev/articles/bulkmail.htm
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 23
Reputation: dreyes67 is an unknown quantity at this point 
Solved Threads: 0
dreyes67 dreyes67 is offline Offline
Newbie Poster

Re: Add a name in the TO: address with code

 
0
  #7
Apr 7th, 2005
Looks like some heavy reading. I will look it over, but it still contains some interesting information.

Thank you
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC