简体   繁体   中英

Creating Outlook object generates - Run-time error '429': ActiveX component can't create object

I'm working on Excel-VBA code.

I'm getting run time error 429 on line -

Set mobjOLA = CreateObject("Outlook.Application")

Code is given below -

Public Sub Test
    Dim mobjOLA as Object
    Set mobjOLA = CreateObject("Outlook.Application")
End Sub

There was mistake in system configuration. Reinstalling Office worked as a solution for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM