Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
outlook profiles
i have 3 different profile accounts setup in microsoft outlook. is there a
way from excel to send a email from any of the 3? for example if the current profile in outlook is , can i through excel send a email from ? thanks in advance |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
outlook profiles
Yes, you login to that profile, something like
Dim oOutlook As Outlook.Application Dim oMail As Outlook.MailItem Dim oRecipient As Outlook.Recipient Dim oNameSpace As Outlook.Namespace Set oOutlook = CreateObject("Outlook.Application") Set oNameSpace = oOutlook.GetNameSpace("MAPI") oNameSpace.Logon "UserAll","thatpassword",True 'etc. -- HTH RP (remove nothere from the email address if mailing direct) "choice" wrote in message ... i have 3 different profile accounts setup in microsoft outlook. is there a way from excel to send a email from any of the 3? for example if the current profile in outlook is , can i through excel send a email from ? thanks in advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
outlook 2007 wont recognize my profiles | Excel Discussion (Misc queries) | |||
Macro Security Across Profiles | Excel Discussion (Misc queries) | |||
My Places set for individual profiles | Excel Discussion (Misc queries) | |||
Customer profiles with automated follow up mailing or call bks | Excel Discussion (Misc queries) |