I need a script to capture the A file path, as my macro opens named files which reside in a different location to the master file that contains the macro, I want to avoid hardcoding the paths and end users having to change the VBA code every month for example
Master file resides in
c:\accounts\MasterFiles\
the files that the master file macro uses are located in: (This location changes every month.)
c:\accounts\monthendfiles\2012\Jan\
so I either need the macro to reference a range in the spreadsheet that the end user inputs the year and month folder names so this can be called into the path name, or a prompt and browse to the folder path that can be referenced in the macro.
woudl really appreciate any assistance
Sarah
Master file resides in
c:\accounts\MasterFiles\
the files that the master file macro uses are located in: (This location changes every month.)
c:\accounts\monthendfiles\2012\Jan\
so I either need the macro to reference a range in the spreadsheet that the end user inputs the year and month folder names so this can be called into the path name, or a prompt and browse to the folder path that can be referenced in the macro.
woudl really appreciate any assistance
Sarah