Link to home
Start Free TrialLog in
Avatar of APD Toronto
APD TorontoFlag for Canada

asked on

ActiveX component can't create object: CreateObject("UserAccounts.CommonDialog")

Hello Experts,

I need to enhance a VBScript that I did years ago, but I keep getting:

ActiveX component can't create object: CreateObject("UserAccounts.CommonDialog")

...the error is on Line 2 of the following code:

    Dim objDialog
    Set objDialog = CreateObject("UserAccounts.CommonDialog")
    objDialog.Filter = "Bank Downloaded Files (*.csv)|*.csv"
    objDialog.FilterIndex = 1
    objDialog.InitialDir = startupFolder
    inFile = objDialog.ShowOpen

Open in new window


Any help will  be greatly appreciated.

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of ltlbearand3
ltlbearand3
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of APD Toronto

ASKER

Thank you