Kemidan2014
Board Regular
- Joined
- Apr 4, 2022
- Messages
- 229
- Office Version
- 365
- Platform
- Windows
I am not sure if this is even possible but I found this code doing a search and thought I would try to modify it to suit my needs which currently does not work
For reference what modified from the original formula I found on the internet, was where it stated "Workbook("Filepath") WAS simply "Activeworkbook" When I tried the function it errored out and highlighed "Workbook" so i am assuming that what i changed was not a correct form of syntax.
What should i change to have this function work correctly?
End goal: display the Date of another work book that my active workbook uses to pull data from.
VBA Code:
Function LastModified() As Date
LastModified = Workbook("O:\1_All Customers\Current Complaints\ToyotaData.xlsx").BuiltinDocumentProperties("Last Save Time")
End Function
For reference what modified from the original formula I found on the internet, was where it stated "Workbook("Filepath") WAS simply "Activeworkbook" When I tried the function it errored out and highlighed "Workbook" so i am assuming that what i changed was not a correct form of syntax.
What should i change to have this function work correctly?
End goal: display the Date of another work book that my active workbook uses to pull data from.