Depends on the application your using it in.
In the hidden members of Excel you will also find something
which is called .hasroutingslip could be very interesting if
you automatically want to forward a workbook ie after each update. In Access what you could do is create a macro using the 'sendobjects' method.
Strangely enough Excel doesn't allow for simply adding body text to an email. I tend to use Access if I want to do this (why Access can and Excel can't is anyone's guess I'm afraid). Store300
You can use MAPI to send an email with or without sending the Workbook. If you search Microsoft or Planetsourcecode.com/vb for MAPI you will find loads of examples. Straight VB ones should work with a little doctoring in VBA.
How come when you use mapi in a vba scrip? the code seems to be so fragile sometimes running fine and the next time you run it could run fine or give errors???
I am using the sendmail function to send an email of the Excel document attached to a certain recipient. I was wondering if there was a way for it to prompt for another attachment. Here is my code:
ActiveWorkbook.SendMail Recipients:="Recipient Name", returnreceipt:="true", Subject:="Quote Request for Part #" + Range("A6"
I found a function called SendMailAttach, but I can't get it to work at all.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.