I need to change the format of the date in my footer to display it in Spanish with an alphabetic month, such as 01-ene-2023.
I found a process to modify the format for a date in my footer using a VBA module at
Here's the script:
Sub add_date_footer()
ActiveSheet.PageSetup.LeftFooter = Format(Date, "dd mmm yyyy")
End Sub
This will return the date for 01/01/2023 as 01 Jan 2023
However, I need to display the month abbreviation in Spanish (without changing my computer to Spanish).
In this case it should be 01 ene 2023.
Is there a way to do a VLOOKUP or something similar in the Format() for a page footer ?
Thanks for your help.
I found a process to modify the format for a date in my footer using a VBA module at
How to specify date or datetime format in header or footer?
www.extendoffice.com
Here's the script:
Sub add_date_footer()
ActiveSheet.PageSetup.LeftFooter = Format(Date, "dd mmm yyyy")
End Sub
This will return the date for 01/01/2023 as 01 Jan 2023
However, I need to display the month abbreviation in Spanish (without changing my computer to Spanish).
In this case it should be 01 ene 2023.
Is there a way to do a VLOOKUP or something similar in the Format() for a page footer ?
Thanks for your help.