Hi,
I've tried test code below those images, to generate email via M365 Outlook.
So, both Excel and Outlook are in the same package M365 64-bit and this is their interface:
So, this looks pretty new to me and it's not Web based. This is application installed on my company PC. In past we were using Office 2016 32-bit package.
I have this library activated:
And this is my test code:
It gives error:
Automation error. The specified module could not be found.
Crash happens in this row:
Does anyone have idea what is problem here?
I've tried test code below those images, to generate email via M365 Outlook.
So, both Excel and Outlook are in the same package M365 64-bit and this is their interface:
So, this looks pretty new to me and it's not Web based. This is application installed on my company PC. In past we were using Office 2016 32-bit package.
I have this library activated:
And this is my test code:
VBA Code:
Sub TestOutlook()
Dim objOutlook As Object
Dim objMail As Object
Set objOutlook = CreateObject("Outlook.Application")
Set objMail = objOutlook.CreateItem(0)
With objMail
.To = "your_email@example.com"
.Subject = "Test Email"
.body = "This is a test email."
.display
End With
Set objMail = Nothing
Set objOutlook = Nothing
End Sub
It gives error:
Automation error. The specified module could not be found.
Crash happens in this row:
VBA Code:
Set objOutlook = CreateObject("Outlook.Application")
Does anyone have idea what is problem here?