Microsoft Forms / Could not load an object because it is not available on this machine?!

Microsoft Forms / Could not load an object because it is not available on this machine?!

mucip
Collaborator Collaborator
3,117 Views
4 Replies
Message 1 of 5

Microsoft Forms / Could not load an object because it is not available on this machine?!

mucip
Collaborator
Collaborator

Hi,

I have VBA code AutoCAD 2018 on Win 10 and running without problem.

When I copy VBA file to Win7 machine the code start with this error?!

And the webRequest code here is not working either?!

 

Where am I wrong?

 

Regards,

Mucip:)

0 Likes
3,118 Views
4 Replies
Replies (4)
Message 2 of 5

norman.yuan
Mentor
Mentor

Did you run debugging of your VBA code in the said Win7 box to identify what object is not loaded? Or have you tried to open the VBA project in VBA environment in that machine and then open the "References" dialog box to see if there is referenced libraries flagged as "Missing..."?

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 5

mucip
Collaborator
Collaborator

Hi Mr.  @norman.yuan ,

Yes. I checked and nothing missing in referance listbox.

I gound some information here.

https://wordmvp.com/FAQs/AppErrors/CannotLoadObject.htm

 

I think the version of DLL or OCX is problem?!

 

I have to check. 😞

 

Is there any easier way to get it?

 

Regards,

Mucip:)

 

0 Likes
Message 4 of 5

norman.yuan
Mentor
Mentor

You need to step through the code in debugging in that machine to see which line of the code raises the error, thus determine what object the code could not load/create.

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 5 of 5

mucip
Collaborator
Collaborator

Hi,

Unfortunatelly when I push StepInto button the error message come up!

I can not understand where error is?

 

Regards,

Mucip:)

0 Likes