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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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