Hi
I've got a userform with 3 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
Filename = TextBox1.Text & textbox3.text
myitem.saves "c:\temp\" & Filename & ".msg" , olmsg
Unload Me
myitem.Display
End Sub
--------------------------------------------------------------------------------
How can i save this mail on the same name when is push the button send?
Greetings Raymond
I've got a userform with 3 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
Filename = TextBox1.Text & textbox3.text
myitem.saves "c:\temp\" & Filename & ".msg" , olmsg
Unload Me
myitem.Display
End Sub
--------------------------------------------------------------------------------
How can i save this mail on the same name when is push the button send?
Greetings Raymond