Tigron
New Member
- Joined
- Jun 2, 2023
- Messages
- 21
- Office Version
- 2021
- Platform
- MacOS
Hello community,
I tried using the search function here in the forums and I reviewed quite a few tutorials online. I even asked ChatGPT, but in all cases I didn't get an answer...
I want to display the date of the last time my Excel file was saved. To do so, I used the following VBA code:
In the desired cell I entered
I get the following error message: #NAME?. I re-checked the name twice. But it's definitely correct.
Any ideas what is going wrong?
P.S.: I am using the macOS version of Excel 2021. Could that be an/the issue?
I tried using the search function here in the forums and I reviewed quite a few tutorials online. I even asked ChatGPT, but in all cases I didn't get an answer...
I want to display the date of the last time my Excel file was saved. To do so, I used the following VBA code:
VBA Code:
Function LastSaved()
Application.Volatile
LastSaved = FileDateTime(ActiveWorkbook.FullName)
End Function
In the desired cell I entered
Excel Formula:
=LastSaved()
Any ideas what is going wrong?
P.S.: I am using the macOS version of Excel 2021. Could that be an/the issue?