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

link outlook

ResolvedVersion 365

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

Link with Outlook

Hi,

I have to create a excel based tool which can be link with the outlook, so once we have any update or want to send the updates to the recipients ,so whatever change we made in this tool then the update will got to all reciepient.

please update can we do it.

Thanks
Sanjay

RE: link with Outlook

Hi Sanjay,

Thank you for the forum question.

Yes you can, but you need to know how to trigger the event (execute the code when file is updated).

You will need to know Outlook VBA and how to reference the Outlook library from Excel.


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

RE: link with Outlook

Thanks Jens for your input

RE: link with Outlook

Hi Sanjay,

See basic Outlook VBA below.

It can only work if you activate the Outlook object library.


Sub sendemail()
Dim OutApp As Outlook.Application
Dim OutMail As Object

Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = “xxx@xxx.co.uk”
.CC = ""
.BCC =””
.Subject = “New Update”
.Body = "Hello Guys” & VbNewLine” & “Please find attached update” & VbNewLine & “Kind Regards” & VbNewLine & “Jack Jones”

.Attachments.Add “C:\Users\Name\Desktop\Excel Files\MyAttachment.docx”
.Send
End With
Set OutMail = Nothing
Set OutApp = Nothing
End Sub



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

RE: link with Outlook

Thanks Jens.

 

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:

Fill formulae across a sheet

To copy a formula down a spreadsheet where there is data underneath, to the left or to the right of the formula, double-click on the fill handle. The fill handle is the little black cross that appears in the bottom right-hand corner of the formula cell. Unfortunately, no similar facility exists to copy formulae across the sheet.

One reasonably quick way to copy an existing formula across a sheet is to select the formula and the cells on the right to which you want to copy it. Then press Ctrl+R to copy the formula across the selected range, or, if you are menu-minded, use the Edit|Fill|Right command.

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.