I want to be able automate certain things in Outlook (ex. compose a new email and populate parts of it). I have much more experience in IT related matters than those that will be using the files.
I had to enabled the Microsoft Outlook 15.0 Library yesterday in order to accomplish what I was doing. Is it possible to not need that enabled on the other computers that are going to use my file? Or enable it within the VBA code? I'm open to other solutions.
I just know that I'm not utilizing a tool (in this case Outlook) that could definitely help me streamline some tasks...
I was reading about early vs late binding yesterday and thought I had changed my code to late binding. But, I am still having issues with it. Here is my code.
Private Sub btnGenerateEmail_Click()
Dim obApp As Object
Dim objMsg As MailItem
Set obApp = Outlook.Application
Set objMsg = obApp.CreateItem(olMailItem)
With objMsg
.To = "test@test.com"
.cc = "test@test.com"
.Subject = "Scrap Face Incident Report"
.Display
End With
End Sub