I have Microsoft Office 365 Business
installed on my PC and am attempting to run Access VBA
to create an Excel Object. This is my Access VBA syntax I am using
Dim xl As Object, wb As Object, ws As Object, ch As Object
Set xl = CreateObject("Excel.Application")
However, it hits the CreateObject
line and throws the image below, but ONLY on my PC running Office 365 Business. If I run this same syntax on a computer running Office 2010 it executes exactly as it should and creates the Excel Object error free.
What must I change in order to be able to run this syntax with Microsoft Office 365 Business
?
EDIT
This is the only Registry Key that I see - it is close, but not exactly what was stated in the comments.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…