R
Raymond
Hi
I've got a userform with 2 textboxes and command_button
When I press the command_button
The fulling code will work:
[vb]
Private Sub CommandButton1_Click()
Set myOlApp = CreateObject("Outlook.Application")
Set myitem = myOlApp.CreateItem(olMailItem)
myitem.Subject = TextBox1.Text
myitem.To = TextBox2.Text
myitem.saves "c:\temp\" & item.subject & ".msg" , olmsg
Unload Me
myitem.Display
End Sub
[/vb]
How can i save this mail on the same name when is push the button send?
Greetings Raymond
I've got a userform with 2 textboxes and command_button
When I press the command_button
The fulling code will work:
[vb]
Private Sub CommandButton1_Click()
Set myOlApp = CreateObject("Outlook.Application")
Set myitem = myOlApp.CreateItem(olMailItem)
myitem.Subject = TextBox1.Text
myitem.To = TextBox2.Text
myitem.saves "c:\temp\" & item.subject & ".msg" , olmsg
Unload Me
myitem.Display
End Sub
[/vb]
How can i save this mail on the same name when is push the button send?
Greetings Raymond