K
Klemen25
Hello
I managed to slowly build a code for my file and in it I used
'Application.Dialogs(xlDialogSendMail).Show.' for sending the file
from excel.
I like this as already managed to make (find and adjust to be honest)
a code (I am total noob) for name of the file I would like to send
from Excel, and also I need the user that will use this code to be
able to write different comments in the body of the mail that will be
sent.
But is it possible to add email addresses (that will always be the
same in this 'DialogSendMail'?
So that To, and CC fields will be already filled out?
.... So far i use the following code to name the file, hide the sheet,
and than to send it.
Const PATH As String = "R:\.....
.SaveAs Filename:=PATH & _
.Sheets("ALM").Range("G2").Value & "" & ".xls"
End With
ActiveWindow.SelectedSheets.Visible = False
Application.Dialogs(xlDialogSendMail).Show
ActiveWorkbook.Close
End Sub
Any easy way?
I looked at http://www.rondebruin.nl/sendmail.htm but was unable to
find the right solution, although there are great examples.
Thanks for any help!
I managed to slowly build a code for my file and in it I used
'Application.Dialogs(xlDialogSendMail).Show.' for sending the file
from excel.
I like this as already managed to make (find and adjust to be honest)
a code (I am total noob) for name of the file I would like to send
from Excel, and also I need the user that will use this code to be
able to write different comments in the body of the mail that will be
sent.
But is it possible to add email addresses (that will always be the
same in this 'DialogSendMail'?
So that To, and CC fields will be already filled out?
.... So far i use the following code to name the file, hide the sheet,
and than to send it.
Const PATH As String = "R:\.....
.SaveAs Filename:=PATH & _
.Sheets("ALM").Range("G2").Value & "" & ".xls"
End With
ActiveWindow.SelectedSheets.Visible = False
Application.Dialogs(xlDialogSendMail).Show
ActiveWorkbook.Close
End Sub
Any easy way?
I looked at http://www.rondebruin.nl/sendmail.htm but was unable to
find the right solution, although there are great examples.
Thanks for any help!