email generation certain data

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Email Generation or Certain data

Email Generation or Certain data

resolvedResolved · Medium Priority · Version 2010

Adrian has attended:
Excel VBA Introduction course
Excel VBA Intermediate course
Excel Intermediate course

Email Generation or Certain data

Hi

I want an email to be automatically generated (not to send, but to generate so all I have to do is hit send. The email will be generated in Outlook.

The problem is, that I want the email to be created by clicking a Macro button and this email will then populate certain information from within the Excel spreadsheet. I have various bits of data, but the concept is the same, so for ease, I shall keep it brief.

I have Row 1 which will have the months of the year. In row 2, I have sales data populated. At the end of the months, so Column M I believe, I have a Totals column. If its July, I want the email to populate Rows 1 and 2 for all months of the year up to and including July, plus the Totals column, but not the Future months.

Your help would be much appreciated

Kind regards

Adrian

RE: Email Generation or Certain data

Hi Adrian,

Thank you for the forum question.

I can guide you in the right direction but this will take some time to write the code. I would use a dynamic array to store the data I will find using a input box where I can type the month. July if I want the data from January to July.

To add the data in a body of and email you can find the code here:

http://www.rondebruin.nl/win/s1/outlook/amail4.htm

I hope this can help you.




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

Mon 3 Aug 2015: Automatically marked as resolved.

 

Training courses

 

Training information:

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
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Make a quick copy of a worksheet

Hold down the Ctrl key, then click and drag on a sheet tab to make a copy of that sheet. Though this process usefully copies the formats of the original sheet, note that any Range Names you have on the original sheet will be duplicated too.

To make a copy of a worksheet's contents and formats without duplicating range names: (1) Ensure that you have a blank worksheet to paste to. (2) On the sheet to copy, click on the sheet selection square to the left of Column A's heading to select the whole sheet. (2) Copy the whole sheet. (3) Paste to the blank worksheet.



View all Excel hints and tips


Server loaded in 0.08 secs.