Forum Discussion
wayned6849
Dec 25, 2022Copper Contributor
How to change date format in Excel footer
I am creating a template for a Spanish project. In Spanish, the dates are formatted dd/mm/yyyy. How can I change the format in my footer ? The current entry is: Actualizado &[Date] Thi...
- Dec 26, 2022I finally found a way to do this! I'll post the information here for anyone else looking for a way to accomplish this. It is from this article.
https://www.extendoffice.com/documents/excel/4266-excel-format-date-in-header.html
I created a 3 line VB script:
Sub add_date_footer()
ActiveSheet.PageSetup.LeftFooter = Format(Date, "dd-mm-yyyy")
End Sub
When I ran it, it changed the date in my footer from mm/dd/yyyy to dd/mm/yyyy.
Thanks for all the suggestions.
rangelsammon
Dec 26, 2022Brass Contributor
rangelsammon
Dec 26, 2022Brass Contributor
im trying to duplicate what you have but i cant to work but it should work. just surround with text function