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

adding table email using

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Adding a Table to an email using VBA

Adding a Table to an email using VBA

ResolvedVersion 365

Samuel has attended:
Excel VBA Intermediate course
Excel VBA Advanced course

Adding a Table to an email using VBA

Hi, I am trying to add a table to an email containing 8 cells to an email using VBA, what is the best way to do this?

RE: Adding a Table to an email using VBA

Hi Samuel,

Thank you for the forum question. I hope you train trip home went well.

If you want to take a table from an Excel sheet and drop it in the email body. It is not an easy task. You have to combine Excel VBA, Outlook VBA, and HTML codes.

You can easily attach the file with the table or drop the data in an array and add it to the body txt, but formatting, tables, adding pictures to email body is all done by HTML coding.

Have a look at the link below.


https://www.rondebruin.nl/win/s1/outlook/bmail2.htm




Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
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

Will be marked as resolved in 5 days

Notice: This is an automated message. Due to inactivity, this forum post will be marked as 'resolved' if there are no further responses in the next 5 days.

Thu 18 Jan 2024: 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:

Sum Up All the Values in A Column

If you want to quickly calculate the Summed values of all cells in a column in Excel 2003 normally you would use the SUM formula. (eg if you wanted to calculate the values in Column C rows 10 to 25) the formula would be:

=SUM(C10:C25)

However, if you keep adding values to column C you would keep having to modify the above SUM formula which can get quite annoying.

To get around this you can sum all the values in a column using the following formula:

=SUM(COLUMN:COLUMN)

Which, in our example, would be:

=SUM(C:C)

NOTE You cannot place this formula in column C, or else Excel 2003 will show a circular reference error.

The formula must be placed in any other column, EXCEPT the one being calculated.

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.1 secs.