link outlook

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Link with Outlook

Link with Outlook

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

Saving your Excel Spreadsheet as a CSV File

In situations where you need to save your Excel spreadsheet as a CSV file, follow these simple steps.

Click the File tab and click Save As.
Enter a name in the File name field.
Click the drop-down arrow next to the Save as type field to select the file type. Scroll down the list and select CSV (comma delimited) (*.CSV)
Click Save

The data will now be saved to a separate CSV file which can be used in different applications.

View all Excel hints and tips


Server loaded in 0.06 secs.