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

send outlook email opening

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Send outlook email when opening Excel document

Send outlook email when opening Excel document

ResolvedVersion 2007

Jessica has attended:
Excel VBA Intro Intermediate course

Send outlook email when opening Excel document

How do you automatically generate a personalised email to a particular address when an excel document is opened

RE: Send outlook email when opening Excel document

Hi Jessica

Thanks for getting in touch. Let's look at this in two parts, first the mailing. There's a couple of different ways you can do this. May I recommend you look at Ron DeBruin's excellent guides on the subject?

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

To have something automatically happen on opening a Workbook, you need to attach code to this action. In the Visual Basic Editor, double-click "ThisWorkbook" under the project file name. There's a drop-down menu above the code that reads "General". Change this to read "Workbook" and the second menu shoudl change to read "Open".

Any code you enter in this section will trigger automatically when the file is opened, providing macros are enabled.

Try them out and let me know if you have any problems.

Both of these topics are dealt with on our VBA Advanced course if you want to find out more.

Kind regards

Gary Fenn
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 11 Mar 2014: 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:

Use Paint Brush to Format More than one Cell

To copy a format to many cells or ranges

1. Select the cell with the format that you want to copy

2. Double-click on the paint brush

When you move to the cell where you want to paste the format you will notice that a paint brush follows the cursor.

Paste the format to all the cells or ranges you need to format.

When finished go back to the paint brush on the tool bar and single click on it to deactivate the function.

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