Hi,
I build an outlook form from which I can send an email by pressing a send button (see code).
How must I change the code so that the values of the radio buttons and the text field that are in this form are send along with the email?
Sub CommandButton1_Click()
Dim myolApp
Dim myItem
Set myolApp = CreateObject("Outlook.Application")
Set myItem = myolApp.CreateItem(olMailItem)
Set myItem = Application.CreateItem(0)
myItem.To = "h......w......@mycompany.com"
myItem.Subject = "Meine Exchange Mailbox"
myItem.Body = "hier come the values of the buttons...."
myItem.Send
Set myolApp = Nothing
Set myItem = Nothing
End Sub
I build an outlook form from which I can send an email by pressing a send button (see code).
How must I change the code so that the values of the radio buttons and the text field that are in this form are send along with the email?
Sub CommandButton1_Click()
Dim myolApp
Dim myItem
Set myolApp = CreateObject("Outlook.Application")
Set myItem = myolApp.CreateItem(olMailItem)
Set myItem = Application.CreateItem(0)
myItem.To = "h......w......@mycompany.com"
myItem.Subject = "Meine Exchange Mailbox"
myItem.Body = "hier come the values of the buttons...."
myItem.Send
Set myolApp = Nothing
Set myItem = Nothing
End Sub
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „jakeelee“ ()