NearImpossible
Registered User.
- Local time
- Yesterday, 18:36
- Joined
- Jul 12, 2019
- Messages
- 225
I am using the following code to generate emails from my Access database using a locally installed version of Outlook and it works without issues, but what would I need to change to be able to use Outlook 365 Web?
I've never dealt with email setups in VBA before as I'm pretty much self taught via dissecting code I find on the web and Q&A forums like this one.
Please advise
thank you
Code:
Dim oOutlook As Object 'Outlook
Dim oEmailItem As Object 'Email
Set oOutlook = CreateObject("Outlook.application")
Set oEmailItem = oOutlook.CreateItem(olMailItem)
With oEmailItem
.SentOnBehalfOfName = "sender"
.To = "recipient"
.Subject = "Subject"
.HTMLBody = "Text"
.display
'.Send
End With
I've never dealt with email setups in VBA before as I'm pretty much self taught via dissecting code I find on the web and Q&A forums like this one.
Please advise
thank you