Modifying Macro to edit whole folder directory

I was linked to this Macro on Solidworks forums that I'm trying to use. I can't seem to get the macro to focus on a full folder or directory rather than the last active file. I have a few other macros that just need you to specify the folder and it opens them automatically, I need this one to do the same.

SolidworksApi macros