Share via

VBA script error in GetObject function in Excel 365

Mano Johnson 5 Reputation points
2023-06-22T11:33:00.6833333+00:00

I am trying to call wcf service moniker string in GetObject function in vba macro script in Excel 365 , but the getting the following error. It was working fine with previous versions of excel.

Runtime error '-2147221020 (800401e4)

Automation error

Invalid syntax

Microsoft 365 and Office | Install, redeem, activate | For business | Windows

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.