User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 397,771 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,539 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 1474 | Replies: 6
Reply
Join Date: Jan 2005
Location: Houston, Tx.
Posts: 23
Reputation: dreyes67 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
dreyes67 dreyes67 is offline Offline
Newbie Poster

Solution Add a name in the TO: address with code

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 107
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

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

  #2  
Apr 6th, 2005
The TO line of a VB Form?
Reply With Quote  
Join Date: Jan 2005
Location: Houston, Tx.
Posts: 23
Reputation: dreyes67 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
dreyes67 dreyes67 is offline Offline
Newbie Poster

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

  #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 Images
File Type: jpg reqby.jpg (68.2 KB, 3 views)
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 107
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

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

  #4  
Apr 7th, 2005
What is the NAME of that textbox?
Reply With Quote  
Join Date: Jan 2005
Location: Houston, Tx.
Posts: 23
Reputation: dreyes67 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
dreyes67 dreyes67 is offline Offline
Newbie Poster

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

  #5  
Apr 7th, 2005
In the example I used the name DEPTMAN
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 107
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

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

  #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  
Join Date: Jan 2005
Location: Houston, Tx.
Posts: 23
Reputation: dreyes67 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
dreyes67 dreyes67 is offline Offline
Newbie Poster

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 4:29 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC