Hello i want to create a macro in excel 2013 that will save as pdf file with the current date as a name.Thank you very much
Please use the below macro. It should give the desired results
Dim flpth As String
flname = Format(Date, "mmm-dd-yyyy")
flpth = ThisWorkbook.Path & "\" & flname
Please note: You'll need to take care and make sure that the print formatting, alignment of text, page setup etc are done properly for your file, else the pdf output may not appear properly.
Hope this helps,
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here