hi,
i can open a mail-message from excel-vba in outlook, with predefined text and predefined attachments:
>>> Call Openemail(auswahl, dokument1, dokument2, dokument3, dokument4, dokument5, dokument6, mailadress, betreff, user)
then
Sub Openemail(auswahl, dokument1, dokument2, dokument3, dokument4, dokument5, dokument6, mailadress, stringName, user)
Dim strLocation As String
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = mailadress
.CC = ""
.BCC = ""
.Subject = stringName
etc.
works fine.
but:
the messages opended like this use the default outlook account.
how can i predifine in excel-vba, which outlook account should be used?
thanx for any help
stan
|