I made a macro for the export of files in STEP or in SolidWorks Native format, currently I have a "MsgBox" that asks: "Yes for STEP and No for SLDPRT"...
I would like to know if it was possible to replace the yes/no buttons with STEP/SLDPRT.
No, it is not possible to change the text of the buttons of a MsgBox to Vba. You can only choose from the following preset styles: https://msdn.microsoft.com/fr-fr/library/139z2azd%28v=vs.90%29.aspx
On the other hand, it is possible to create a userform with custom buttons, drop-down menus, checkbox.
To do this, right-click in the tree of your macro and then Insert and Userform.
Then you draw your form to your liking.
Post your file and tell me what you prefer, button or checkboxes or even drop-down menus and I'm willing to do that for you.
The problem is solved, but I still have a small problem. I take the first 3 characters in the file name, I have to test if the result is a number. Because currently when there is a letter in it, the script crashes :(
So I don't know if in VBA there is like in other languages a kind of "Try ... catch or except"?