Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

how to open *.sldprt in excel macro?

I think that the SHELL command is what you are looking for. (See the help for SHELL in VBA for Excel). Unfortunately, SHELL will open the SolidWorks application asinchronously. That means that after your VBA code use SHELL to open an application, VBA will not wait until the application is ok to work.
After the application (SolidWorks) will be opened then you can use the SENDKEY command to open the .SLDPRT . It is a hard and ugly work.

May I ask you why you need to do that ?
SW also contain a powerful VBA itself.

Good luck !
 

Sponsor

Articles From 3DCAD World

Back
Top