![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
OK, I know a lot of people ask macro questions, but can someone just answer me this quick one. How do I record a macro so that everytime I click it, it saves the workbook in a folder but gives it a name different from the other files. For instance, the first time I click it, it will save the workbook as "1", then the next time I click it it will save it as "2" and so on. Is this possible, and if so, is there a way to get it to save it as the current date? |
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
ActiveWorkbook.SaveAs Filename:=Format(Date,"dd-mm-yyyy") & ".xls"
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|