VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VBA codes work with AutoCAD 2012, but not AutoCAD 2014?

7 REPLIES 7
Reply
Message 1 of 8
ozkan_0712
1327 Views, 7 Replies

VBA codes work with AutoCAD 2012, but not AutoCAD 2014?

Hi everbody,

 

My problem is that I did my project with AutoCAD 2012 also used VBA.  It work so good with 32 bit AutoCAD 2012.

 

However, when l try different computer Autocad 2014 64 bit, same codes also I downloaded everthing. (VBA 2014 64 bit).  it doesn't work.

 

I put picture on attachment.

 

Can somebody give me any tip?

 

Thanks...

 

 

7 REPLIES 7
Message 2 of 8
norman.yuan
in reply to: ozkan_0712

You can click VBA menu "Tools->References..." to open "References" dialog box to see which component/library is flagged as "missing....".

 

Since your VBA project was developed against 32-bit VBA while you are trying it with 64-bit VBA, it is very likely that something in the VBA project is 32-bit specific, such as some controls/components is 32-bit version, therefore cannot be used in 64-bit VBA. If it is this case, you must identify and replace them with 64-bit version of equivalent, which may not exist in most cases, by the way.

Message 3 of 8
noeltek
in reply to: norman.yuan

I am having the same issue with this: Private Declare Sub Sleep Lib "kernel32" needing to be in 64 bit version

 

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Public Sub Wait(Seconds As Single)

 Dim lMilliSeconds As Long
 lMilliSeconds = Seconds * 1000
 Sleep lMilliSeconds

End Sub

 

Does anyone know what the 64 bit compatible version is?

Message 4 of 8
ozkan_0712
in reply to: ozkan_0712

Actually, I tried in tools/referances every referances. But It seem not to work. But thanks for helping..

 

 

Message 5 of 8
truss_85
in reply to: ozkan_0712

Eger .dvb dosyanizi gönderirseniz bakabilirim.

Message 6 of 8
ozkan_0712
in reply to: ozkan_0712

I can't send it to you because of academic codes. Thanks...

 

Akademik bir çalışma gönderemem. Teşekkürler...

Message 7 of 8
truss_85
in reply to: ozkan_0712

suit yourself it is your problem.

Message 8 of 8
wodecro
in reply to: noeltek

Have you  tried adding "PtrRSafe " to your declaration? ("Private declare ptrsafe function ... ")

Kind regards

Wouter

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost