- Save As - Macro that finds certain folder in file directory

Hi all,

I'm working on a macro for saving a PDF file of a drawing, in a specific folder.

The drawing is located in a certain folder, and in that folder there's another folder named " * PDF Temporary" (The * represents the project number, which differs)

I want to use this macro with any project, so i would like a piece of code that finds that folder which has "PDF Temporary" in it.

As a result I want a String variable like this:

SaveLocation = CurDir & PDF_Folder & FileName &  ".pdf"

Hope anyone can help me

Cheerz

SolidworksApi macros