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

email generation certain data

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

Email Generation or Certain data

ResolvedVersion 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:

Sorting List Subtotals

If you find that you would prefer to show the items in a subtotalled list in a different order, eg ascending rather than descending, you can sort your list. To sort a subtotalled list, hide the detail rows and then sort the subtotal rows. When you sort a subtotalled list, the hidden detail rows are automatically moved with the subtotal rows.
IMPORTANT: If you do not hide the details rows before sorting a subtotalled list, your subtotals will be removed and all of the rows in your list will be reordered.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.