The following is the beginning of my code
Set swApp = Application.SldWorks
Set swModel_1 = swApp.ActiveDoc
Path = swModel_1.GetPathName
If Path = "C:\EXAMPLE\000s\MODELS\pro*.SLDASM" Then
This is just a test. I want it to recognize if the filepath of the file I am opening is "C:\EXAMPLE\000s\MODELS\property test.SLDASM" (it works when I remove the asterisk and have the full file path). I am having trouble with the wildcard character though. In most other applications and asterisk is used to denote any set of characters. This is apparently not the case. I did some searching and found that a % is what can be used instead of an asterisk.
This did not work either. Any ideas on what the character may be?
Thank you for your time and help,