98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » Using code to split information in excel tabs into body of emai
Using code to split information in excel tabs into body of emai
Resolved · Medium Priority · Version 2010
Michael has attended:
Excel Intermediate course
Using code to split information in excel tabs into body of emai
Hello,
As my title suggests, I am looking to use information, I have split up into excel tabs, to go into the body of separate emails in outlook.
So what I have done so far is use a VBA code to split the data that I received into separate tabs.
Now i am looking to make a VBA code to make each tab go in the body of its own email (in outlook) and also to be emailed to the specific person in the relevant tab.
for example:
name Department bonus Manager email
Phil IT 100 JD Henderson jd@email.com
If this was an example of one tabs information. I would like to get the information into something like this:
to: jd@email.com
Dear JD Henderson,
Your employee Phil from IT is entitled to a bonus of 100 this year
regards
Barry Manilow
I hope this clarifies what I am looking for. So far I have only managed to make the code send it as an attachment.
kind regards
Michael
RE: Using code to split information in excel tabs into body of
Hi Michael,
Thank you for the forum question.
What you want can easily be done in MS Word.
Under mail merge you can create emails where you can use the data in Excel.
It can also be done in VBA. You will need to store the data in variables and loop through the records and worksheets.
I do not know how much knowledge you have about VBA, but you can find some good examples sending emails from Excel VBA on the website:
www.rondebruin.nl
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
Tue 7 Jul 2015: Automatically marked as resolved.
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Display pictures on Chart Data PointReplacing a single chart data point bar with a picture. |