AnsweredAssumed Answered

Run macro if display part name contains "21-100"

Question asked by Alek T. on Apr 26, 2017
Latest reply on Feb 2, 2018 by Husein Delic

Hello all,

 

I'm new to SolidWorks and VBA and so far I've created a macro to run a basic Design Table operation.

I would like to run my macro only If the current/displayed part name contains the numbers 21-100

In practice this would look like this:

1. open a file, for example ABC21-100

2. Click to run the macro, macro checks if 21-100 is in the file name and if true it runs if not do nothing/stop macro.

3. done

 

What is the best way to do this?

Outcomes