I RECENTLY STARTED LEARNING SOLIDWORKS VBA.
WHENENVER I WANT TO ADD USERFORM IN THE VBA CODE
SOLIDWORKS CRASHED EVERYTIME.
I add another user account to pc.
and install solidworks in that account.
it works fine and i can add userform in vba.
thanks you so much all of you.
Can you post your macro here? there is no reason SW crashes while adding a userform?
EDIT: can you download the att. macro and run
if no crash, you can use it for your macro
Hi, christian chu.
thanks for replying so fast to my problem.
when i am tried to run your macro,
I got an error as you can see in image.
"a serious errpr occured on open macro file.
the system could be in an unstable state now."
Before running the macro, can you go to Tools pulldown menu and select References.... and capture image and post here - see below image
Christian Chu is showing you that you need to check Microsoft Forms 2.0 Object Library. you need to add this reference
Thank you, Jacob
You need to load the Microsoft obj. lib. so so can add window form to your macro
Thanks Christian chu,
Can you please tell me how to do that?
i tick that but same problem occurs.
please see the video i attached to original post.
Roll the bar down find and check Microsoft Form 2.0 Object Library - see below image
What is SP of your SOLIDWORKS?
Also please refer to this article : Instability in SOLIDWORKS due to conflict with Microsoft KB3072630
there is no reference like that in list
Can you try reinstalling SOLIDWORKS or check if that KB affects your machine?
Can you try to replicate the issue on some other machine?
i reinstall solidworks but same problem .
I also tried to other machine , it is working fine in other pc.
Sorry , but how to check KB affects or not my machine?
Raumik Rana wrote: i reinstall solidworks but same problem .I also tried to other machine , it is working fine in other pc.
Raumik Rana wrote:
Can you import SOLDIWORKS settings from that other machine and check again?
i do that.
but same problem.
can you send me other setting so i can check with that?
Can you please report this your VAR and send them the Rx file from your machine?
MrExcel Message Board
You need to follow these steps .
Go To C:\WINDOWS\system32
Search For FM20.DLL
if it doesnt exist go to
Click on Turn Windows Features On or Off
make sure .net framework 3.5 (Includes .net 2.0 and 3.0) is checked like this
Seems to me that you didn't follow any help we provided here. I watched the video and didn'tsee you rolled the bar down to find the Microsoft obj. Lib.
I think it's best to contact your VAR so they can go thru all steps with you
And also you need to get some basic knowledge of windows and VBA before proceeding a macro - trial and error won't get you anywhere !
but after that i browsae fm20.dll and tick microsoft forms 2.0 object library.
uncheck solidworks utilities 2015 type library
Ok.. So did it work now?
is there any problem with windows ?
Retrieving data ...