Office 365
The VBA in word is used to send an email. The code is used with many computers with success, but for one in particular word freeze at the very beginning of the code when accessing the object model with CreateObject
. If Outlook is open it works fine but close it freeze, with the other computers it works fine in both cases.
Dim objOL As Object
Dim objEmailItem As Object
Set objOL = CreateObject("outlook.application") '*** Freezing ***
Set objEmailItem = objOL.createItem(varOlmailitem)
I tried uninstalling office and reinstalling it, stopping the antivirus, restarting.
Thanks.