Solidworks 2020 crashes when trying to create a new macro

When I try to open a new macro to create a new macro SW2020 crashes.

 

Click on create new macro file

New macro file Macro1.swp is ready to save

click save and Solidworks crashes.

I have VBA 7.1

Answers 5
DG
DG 2025-06-19

Does this happens when you edit an existing macro?

Can you try reinstalling VBA 7.1? 

KH
KH 2025-06-19

Deepak, thatnk you for answering.  I get this error when trying to open and existing macro

comment imagecomment image
KH
KH 2025-06-19

I can have my IT department help with teh reinstall of VBA 7.1 if that has a good chance of fixing it.

KH
KH 2025-06-19

I was concerned I might have to roll back to VBA 7.0 which may be a hard sell to my IT department.

DG
DG 2025-06-19

Try the step mentioned in the blog for VBA 7.1