How to do a “Save As” in vba code, saving my current Excel workbook with datestamp?
问题 I have an Excel Workbook that on form button click I want to save a copy of the workbook with the filename being the current date. I keep trying the the following ActiveWorkbook.SaveAs ("\\filePath\FormFlow To MSExcel\" & Left(Now(), 10)) but am receiving Run-time error '1004': Method 'SaveAs' of object'_Workbook' failed. Can anyone assist me with this? I'm still very new to developing for Excel. 回答1: Most likely the path you are trying to access does not exist. It seems you are trying to