Module 64-bit: Autocad 2013 Vba
This module is specifically for 64-bit versions of AutoCAD 2013. It will not work on 32-bit installations of AutoCAD 2013 (if you are still running an older OS) nor on newer versions like 2016 or 2024 without their respective modules.
If you have been clinging to a library of VBA macros written for AutoCAD 2010 or 2012, upgrading to AutoCAD 2013 likely gave you a headache. When Autodesk made the jump to a true 64-bit application architecture with AutoCAD 2013, many users discovered that their VBA routines simply stopped working. autocad 2013 vba module 64-bit
Historically, VBA (Visual Basic for Applications) was bundled directly with AutoCAD. However, with the release of AutoCAD 2013, Autodesk shifted to a 64-bit only model. Because VBA (originally a 32-bit component) required a massive re-architecture to run in-process with a 64-bit host, Autodesk removed it from the default installation. This module is specifically for 64-bit versions of
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long When Autodesk made the jump to a true
While the VBA module allows the code to run , you may need to modify your code if it interacts with the Windows API or uses Declare statements.
Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As LongPtr Use conditional compilation to maintain a single codebase for both bit-versions: