G
Guest
I use a macro to save a query as an excel spreadsheet into a folder, the
spreadsheet is named using a formula, i.e. = format(Date(), "dd mm yy") & " -
" & [Type] & ".xls", however if two spreadsheets are saved on the same day
the second overwrites the first. Does anyone know of a way of adding an
incremental number to the spreadsheet, i.e. it looks to see if the
spreadsheet is all ready there and if it is adds '2' onto its name and if '2'
is already there it adds '3' and so on? Or any other thoughts on how to do
this, the naming HAS to be done automatically, there can be no user input.
Thanks very much.
Emma
spreadsheet is named using a formula, i.e. = format(Date(), "dd mm yy") & " -
" & [Type] & ".xls", however if two spreadsheets are saved on the same day
the second overwrites the first. Does anyone know of a way of adding an
incremental number to the spreadsheet, i.e. it looks to see if the
spreadsheet is all ready there and if it is adds '2' onto its name and if '2'
is already there it adds '3' and so on? Or any other thoughts on how to do
this, the naming HAS to be done automatically, there can be no user input.
Thanks very much.
Emma