![]() |
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
|
|||
|
|||
![]()
I am having trouble using a command button for a post/mail form. I
would like the command button to send an email to a desired address in the address book. When I use the [to] value, it only brings up the address book. I am unfamiliar with VBA script to creat this. Please help. Prerak |
Ads |
#2
|
|||
|
|||
![]()
In article .com,
wrote: I am having trouble using a command button for a post/mail form. I would like the command button to send an email to a desired address in the address book. When I use the [to] value, it only brings up the address book. I am unfamiliar with VBA script to creat this. Please help. When you are setting up an address programmatically, you do not access the [to] field. Instead, you add a recipient object to the recipients collection of the item. You set the recipient object to type To, add the email address, and the message will be sent to that email address. You can find out all you need to know from the Outlook Object Model, and the help icons in the Outlook Code page, and the Object browser (available from the F2 key). But it takes considerable work to learn your way around all these objects, help fields, etc. So, to reduce the frustration go to www.outlookcode.com and search on "recipient", without the quotes, and you will find an example of how to do this. This isn't quite what you want, but close: To automatically add an e-mail address as a Bcc to all outgoing messages in Microsoft Outlook 2000 or later versions 5/10/2006 http://www.outlookcode.com/d/code/autobcc.htm - 18 KB -- Hollis Paul Mukilteo, WA USA |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2003 - Forms Icon On toolbar doesn't list any forms | Kim.in.Denver | Outlook - Using Forms | 8 | July 28th 06 04:35 PM |
How to prohibit command bar buttons customization? | Andrey Starodoubtsev | Outlook and VBA | 1 | July 13th 06 03:02 PM |
Buttons in forms (in Outlook 2003) not doing anything? | U_Nick | Outlook - General Queries | 3 | July 10th 06 08:01 PM |
Problem with option buttons in custom forms | Tom | Outlook - Using Forms | 3 | June 30th 06 06:45 PM |
Outlook forms : Radio buttons value | Lemon | Outlook - Using Forms | 2 | June 19th 06 08:03 AM |