send outlook email opening

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

Send outlook email when opening Excel document | Excel forum

resolvedResolved · Medium Priority · Version 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:

Create and delete borders

To put a border around the outside of a selected range, press Ctrl+Shift+&. Use Ctrl+Shift+_ (underscore) to remove any borders from a range.

View all Excel hints and tips


Server loaded in 0.08 secs.