I read both of these and understood too... however, i need to see the code behind Ron's template... as in one worksheet, i will have all email ids and name to whom email needs to be sent out and in other worksheets i will have tabs with same name as in first worksheet to send the corresponding worksheet to that email id. so i will need to compare the name (in 1st worksheet) with the subsequent worksheet name to send the meaningful data.It is possible, but you'll need to do some reading to to tailor the code to your exact layout. I'd start with Chandoo's post here:
http://chandoo.org/wp/2012/04/23/send-mails-using-excel-vba-and-outlook/
After that, Ron's has some pretty slick template here:
http://www.rondebruin.nl/win/section1.htm
You should be able to read through those two and get a good understanding of what type of coding you will need.
I am very new to VB. i did some research this morning and got it where i could find the code.I was using the add-in here http://www.rondebruin.nl/win/s1/templates.htm (pdf one: RDBMailPDFOutlook) which was matching my requirements. I also made some modification in the file. However now i want to make body of the email as dynamic, i.e. rather entering it into separate column, i want to take name from a additional column and want to use it " Hi {Name}, please find attached file for the data". 'please find attached file for the data' will be static.Don't know where you were looking, but almost all of Ron's sheets provide the code directly. Did you look around here?
http://www.rondebruin.nl/win/s1/outlook/mail.htm
Sure. Please find attached files. So instead of using the text in Body text field, i want to use an extra column "name" [will be inserted] to say Hi {Name} and then rest of the code i will keep static. Thanks.Sounds good. Would it be possible for you to upload your workbook, or an example with same layout? Please include any mail code that you already have so far.
It is possible, but you'll need to do some reading to to tailor the code to your exact layout. I'd start with Chandoo's post here:
http://chandoo.org/wp/2012/04/23/send-mails-using-excel-vba-and-outlook/
After that, Ron's has some pretty slick template here:
http://www.rondebruin.nl/win/section1.htm
You should be able to read through those two and get a good understanding of what type of coding you will need.