H
Hans Otany
Hi ,
I would like, that the "From" field is filled with a default mail address.
my code is the following:
Sub Von_Feld_STD()
Dim myApp As New Outlook.Application
Dim myItem As Outlook.MailItem
Set myItem = myApp.CreateItem(MailItem)
With myItem
.SentOnBehalfOfName = "(e-mail address removed)"
.To = (e-mail address removed)
.Subject = "Neue Mail"
End With
myItem.Display
End Sub
If I execute the makro, the code works very well but i would like that the
code is executed if I click the "New" button.
What event is it, if I click "New Mail"?
Thanks and Best Regards
Hans
I would like, that the "From" field is filled with a default mail address.
my code is the following:
Sub Von_Feld_STD()
Dim myApp As New Outlook.Application
Dim myItem As Outlook.MailItem
Set myItem = myApp.CreateItem(MailItem)
With myItem
.SentOnBehalfOfName = "(e-mail address removed)"
.To = (e-mail address removed)
.Subject = "Neue Mail"
End With
myItem.Display
End Sub
If I execute the makro, the code works very well but i would like that the
code is executed if I click the "New" button.
What event is it, if I click "New Mail"?
Thanks and Best Regards
Hans