Consulting

Results 1 to 3 of 3

Thread: Before sending change account

  1. #1
    VBAX Regular
    Joined
    Aug 2005
    Posts
    77
    Location

    Before sending change account

    Hello!
    I have 2 accounts in Outlook2003
    Is any way to check before sending witch account to use?

    etc. contact group or contact


    Manually i can change the account if writing mail but it's boring

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I haven't tested it, but I think you would just logon to the other account from within Outlook, like this

    [vba]

    Dim oNameSpace As Object

    Set oNameSpace = Application.GetNameSpace("MAPI")
    oNameSpace.Logon , "password", True
    [/vba]

  3. #3
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Quote Originally Posted by Cass
    Manually i can change the account if writing mail but it's boring

    Best every reason to write a macro that I've heard.
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •