98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Link with Outlook
Link with Outlook
Resolved · 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
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
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Saving your Excel Spreadsheet as a CSV FileIn situations where you need to save your Excel spreadsheet as a CSV file, follow these simple steps. |