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

Automaticly change outgoing isp based on sel email address



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old July 16th 06, 02:17 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Automaticly change outgoing isp based on sel email address

For Outlook VBA macro basics, see http://www.outlookcode.com/d/vbabasics.htm

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Paul T. Swaffer" wrote in message ...
I have been trying to implement you program but with my limited expertise I
am having a problem with enabling the macro to rum. I know nothing about a
macro process or how o get one to execute. I have looked at the help with no
luck. Will you advise?

Thanks, paul.

"Eric Legault [MVP - Outlook]" wrote:

You have to "fudge" changing the sending account by automating the clicking
of the appropriate toolbar button:

Sub ChangeSendingAccount()
Dim objCBPU As Office.CommandBarPopup
Dim objCBB As Office.CommandBarButton

Set objCBPU = ActiveInspector.CommandBars.FindControl(, 31224) 'get
Accounts button on Standard toolbar

'Get menu item by name or index number
Set objCBB = objCBPU.Controls.Item("&1 Microsoft Exchange Server")
'Set objCBB = objCBPU.Controls.Item(2)

objCBB.Execute

Set objCBPU = Nothing
Set objCBB = Nothing
End Sub

For a warning message, put it in the Item_Send event.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Paul T. Swaffer" wrote:

Have ms outlook automatically change outgoing ISP account based on selected
email address. Can I do this with a macro and if so how. Can I at least have
a warning message that the ISP account must be change?

 




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
Help, PLEASE! New ISP and OE will not do OUTGOING e-mails Colin Outlook Express 12 July 9th 06 03:36 AM
how to change email address in outlook2003 [email protected] Outlook - Using Forms 0 June 29th 06 04:54 AM
Macro to change the outgoing mail server TeeJii Outlook and VBA 1 May 23rd 06 09:00 PM
If connected to different ISP providers, outgoing mail servers Geoff Bird Outlook - Installation 1 January 16th 06 04:56 PM
how do you change the email address field for all contacts? Mike Bailey Outlook - Using Contacts 1 January 10th 06 12:15 PM


All times are GMT +1. The time now is 03:54 PM.


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.