Hi All
I am looking to see if you check and move an old file andrename it before overwriting it with the current file (archiving past reports whilemaintaining short cuts for those who need it). Save strings/path I can set upto a cell reference. I need help with looking for and moving old files. The instructionsI hope to flow something like this:
i.e.
If report.xlsb is @ string1 then
report.xlsb (OLD) @ string1 move
save as report(D1).xlsb @ string2
if not report.xlsb save to string1
report.xlsb (current) save to string1
replace true
Report= file name (derived from cell F1)
String1= path (derived from cell G2)
String2= path2 (derived from cell H2)
D1= date cell for year reference
My plan is string1 and string2 will be unique to each varianceof the report, but the report is universal for all variants (10 cars, historyfor each car, but all cars have own reports).
I am looking to see if you check and move an old file andrename it before overwriting it with the current file (archiving past reports whilemaintaining short cuts for those who need it). Save strings/path I can set upto a cell reference. I need help with looking for and moving old files. The instructionsI hope to flow something like this:
i.e.
If report.xlsb is @ string1 then
report.xlsb (OLD) @ string1 move
save as report(D1).xlsb @ string2
if not report.xlsb save to string1
report.xlsb (current) save to string1
replace true
Report= file name (derived from cell F1)
String1= path (derived from cell G2)
String2= path2 (derived from cell H2)
D1= date cell for year reference
My plan is string1 and string2 will be unique to each varianceof the report, but the report is universal for all variants (10 cars, historyfor each car, but all cars have own reports).