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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 31st 06, 06:40 PM posted to microsoft.public.outlook.program_vba
c mateland
external usenet poster
 
Posts: 15
Default Outlook macro question

I have two email accounts in Outlook 2003. I know about the Accounts
drop list in new emails. But is it possible to create a few macros so
that I end up with two buttons where each runs a macro that starts a
new email using a specific account? One button would start a new email
using account 1 and the other button would start a new email using
account 2. If so, could someone please give me some pointers?

Thanks.

  #2  
Old July 31st 06, 08:11 PM posted to microsoft.public.outlook.program_vba
c mateland
external usenet poster
 
Posts: 15
Default Outlook macro question (sendkeys)

Google'ing this, I still can't find a clear cut answer to this. I find
no complete code that works. So, I built two routines using Sendkeys.

Sub Acct02SndKeys()
SendKeys "^+m"
SendKeys "%n"
SendKeys "2"
End Sub

Sub Acct01SndKeys()
SendKeys "^+m"
SendKeys "%n"
SendKeys "1"
End Sub

I then made the macro buttons for a toolbar and it seems to work fine.

Any dangers in using this or is there truly a better way?

Thanks.



c mateland wrote:
I have two email accounts in Outlook 2003. I know about the Accounts
drop list in new emails. But is it possible to create a few macros so
that I end up with two buttons where each runs a macro that starts a
new email using a specific account? One button would start a new email
using account 1 and the other button would start a new email using
account 2. If so, could someone please give me some pointers?

Thanks.


  #3  
Old August 1st 06, 05:22 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Outlook macro question

Am 31 Jul 2006 10:40:11 -0700 schrieb c mateland:

Here´s a sample how to use the commandbars for setting the account:
http://www.outlookcode.com/codedetail.aspx?id=196

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


I have two email accounts in Outlook 2003. I know about the Accounts
drop list in new emails. But is it possible to create a few macros so
that I end up with two buttons where each runs a macro that starts a
new email using a specific account? One button would start a new email
using account 1 and the other button would start a new email using
account 2. If so, could someone please give me some pointers?

Thanks.

 




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 macro question c mateland Outlook - General Queries 1 August 22nd 06 11:06 PM
outlook macro matt Outlook and VBA 1 January 30th 06 01:30 PM
VB and outlook macro need help jbullington Outlook and VBA 1 January 10th 06 03:22 PM
an outlook2000 macro programming question..... Alont Outlook - General Queries 0 January 8th 06 03:14 AM


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