Excel VBA based Error - "run-time error '-2147221231 (80040111)':

mena139

New Member
Joined
Dec 2, 2016
Messages
14
Every time I try to run the Macro that i have inherited from previous employees here, i get this new run time error.

run-time error '-2147221231 (80040111)':

automation error
ClassFactory Cannot supply requested class

when i hit debug it takes me to the following line

Dim objDataControl As BLP_DATA_CTRLLib.BlpData
Set objDataControl = New BlpData

and highlights the second. any advice on how to fix this or why this error is happening. yesterday this file wokred without issue and today I seem to be missing something.
any and all help is greatly appreciated.

Thanks in advance!
 
Ya solved my issue too! now i need to figure out how to correct the issue so we dont need to go through this again in a few weeks!!
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Ya solved my issue too! now i need to figure out how to correct the issue so we dont need to go through this again in a few weeks!!

yes. the best way, as far as i am concerned is to switch the part of the sheets that use BlpData to python. It is much simpler and a lot more reliable. obviously, it depends on the user interaction required.
 
Upvote 0
yes. the best way, as far as i am concerned is to switch the part of the sheets that use BlpData to python. It is much simpler and a lot more reliable. obviously, it depends on the user interaction required.

I have the same problem. Currently I am using VBA to call BlpData. If the legacy api cannot be used anymore, does switching to python can really help to solve?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,173
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top