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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

command buttons in outlook forms



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 21st 06, 04:55 PM posted to microsoft.public.outlook.program_forms
[email protected]
external usenet poster
 
Posts: 1
Default command buttons in outlook forms

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  
Old August 21st 06, 09:15 PM posted to microsoft.public.outlook.program_forms
Hollis Paul [MVP - Outlook]
external usenet poster
 
Posts: 138
Default command buttons in outlook forms

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


All times are GMT +1. The time now is 10:43 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.