Results 1 to 2 of 2
  1. #1
    Could you tell me how to write program to open *.sldprt file with excel VBA?
    Edited by: qihongming

  2. #2
    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 !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •