ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
MSMohammad Shojaati25/03/2025

Hi all,

I have problem with using Macro in Solidworks 2024. Whatever code that I write, I see the following error and even when I record a simple Macro and want to run it, I see the following error:

"Runtime error 91 Object variable or with block variable not set"

and in debug section, this line is highlighted:

StudyManagerObj = Nothing
 

It seems like there's something wrong with macro feature in my software.