DarbyBrown
New Member
- Joined
- Jan 22, 2016
- Messages
- 31
- Office Version
- 365
- Platform
- Windows
I am having trouble adding a ‘Last Update’ cell to my worksheet. The things I have tried are:
First, Used the VS editor and created a module, (Alt-F11):
Function ModDate()
ModDate = Format(FileDateTime(“MyFileName.xlsm”))
‘With and without the quote marks’
End Function
Then called the function in the cell formula
=ModDate()
The cell displays #VALUE!
Second, I tried to put the Formula directly in the cell:
=Format(FileDateTime(“MyFileName.xlsm”, “m/d/yy”))
The cell displays “$NAME?
Then, I changed the Module formula to:
ModDate = FileDateTime(“MyFileName.xlsm”)
(I also tried this formula directly in the cell)
The cell displays $VALUE!
What am I doing wrong???
First, Used the VS editor and created a module, (Alt-F11):
Function ModDate()
ModDate = Format(FileDateTime(“MyFileName.xlsm”))
‘With and without the quote marks’
End Function
Then called the function in the cell formula
=ModDate()
The cell displays #VALUE!
Second, I tried to put the Formula directly in the cell:
=Format(FileDateTime(“MyFileName.xlsm”, “m/d/yy”))
The cell displays “$NAME?
Then, I changed the Module formula to:
ModDate = FileDateTime(“MyFileName.xlsm”)
(I also tried this formula directly in the cell)
The cell displays $VALUE!
What am I doing wrong???