Hi and thanks in advance!
I have a macro that uses OutLook to send attachments, etc through OutLook using Excel VBA.
The macro works fine, does every thing OK except:
If I have 2 or more OutLook accounts , I would like to choose which one I like to use.
At present I am using:
So I f I have 3 OutLook Accounts say eg:
If I choose:
I mean I am sending the mail, but not using the desired OutLook account.
Any IDEA what am I missing?
what do I need?
PS: I know rondebruin's website
Thanks again!
I have a macro that uses OutLook to send attachments, etc through OutLook using Excel VBA.
The macro works fine, does every thing OK except:
If I have 2 or more OutLook accounts , I would like to choose which one I like to use.
At present I am using:
Code:
With OutMail
'''.From = wEmailFrom ????
'.display
.To = wEmail
.CC = wCC
.BCC = wBCC
.SendUsingAccount = wEmailFrom 'Does NOW WORK
'.SentOnBehalfOfName = wSentOnBehalfName 'Does NOW WORK
.Subject = wSubject
.Body = wTextBody
end with
So I f I have 3 OutLook Accounts say eg:
If I choose:
- wEmailFrom = Account2@Outlook.com
I mean I am sending the mail, but not using the desired OutLook account.
Any IDEA what am I missing?
what do I need?
PS: I know rondebruin's website
Thanks again!