API referenced excel file

Hi

I have created a code that builds my part based on dimension from a excel file. Currently the excel file and the API are saved to my memory stick, and the file path of the excel workbook is specified in the code. However I want the user to be able to copy the API and excel file to their hard drive. so the API needs to search for the excel file referenced, rather than looking for it on my memory stick.

An alternative would be to tell the user put the API and the excel file in the same folder. then if the API path can be found I can find the excel file easily.

Any suggestions, I’ve been trying for few days to get something to work but luck!

please help

Cheers

SolidworksApi macros