It didn’t work but that will come because of a part of the macro that I use to name my saved workbook.
The macro that I use is as followed:
ChDir "C:\ resultaten\ "
ActiveWorkbook.SaveAs Filename:= _
"C:\ resultaten\resultaten" & Format$(Now, "YYMMDD_HHMMSS") & ".xls"...
I wanted to know if it was possible to automatically answer the message box “Do you want to save the changes in “workbook”” with NO.
This is because I already have a macro that saves the sheet under a unique name. And after saving resets the entire sheet so when I’m done I can start without any...
That was exactly what i had in mind Andy.
I have seen some macro's that can check if there is a file with that name. Will see how it will turn out.
But you have been a great help.
Thanks
Saving in Excel with dynamic filename
I'm trying to make a macro that makes a save of a workbook.
So far I managed to get the code but now I wanted to make the filename dynamic.
But I haven’t got the skill to make such a macro so all help is welcome.
The code I have so far is:
ChDir...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.