returningby
New Member
- Joined
- Dec 24, 2015
- Messages
- 4
Hey all,
I have been searching for the last 3 and a half hours so I finally admit I need some help. I currently have an excel document, and it has a list of hyperlink functions to a few different word documents. I wanted to track all of these word documents in excel. So I hyperlinked them, and made a field called "Last modified by". I found a great tool in the forums for a VBA script earlier:
Function ReturnLastModified(r As Range) As String
Dim temp
Application.Volatile True
temp = Split(r.Formula, Chr(34))(1)
If Dir(temp) <> "" Then ReturnLastModified = FileDateTime(temp)
End Function
Basically I have an excel document and I wanted to know when it was last modified. Worked great and the world was happy. So I started thinking, what if I used the nifty BuiltinDocumentProperties tool and grabbed the last author from these word documents? So I tried to alter and research the different syntax, but to no avail. The closest I got was similar scripts, but they always referenced the ActiveWorkbook. Seeing as how I am trying to point these hyperlinks, anything I do results in a #value error. Any help is appreciated. Thank you.
I have been searching for the last 3 and a half hours so I finally admit I need some help. I currently have an excel document, and it has a list of hyperlink functions to a few different word documents. I wanted to track all of these word documents in excel. So I hyperlinked them, and made a field called "Last modified by". I found a great tool in the forums for a VBA script earlier:
Function ReturnLastModified(r As Range) As String
Dim temp
Application.Volatile True
temp = Split(r.Formula, Chr(34))(1)
If Dir(temp) <> "" Then ReturnLastModified = FileDateTime(temp)
End Function
Basically I have an excel document and I wanted to know when it was last modified. Worked great and the world was happy. So I started thinking, what if I used the nifty BuiltinDocumentProperties tool and grabbed the last author from these word documents? So I tried to alter and research the different syntax, but to no avail. The closest I got was similar scripts, but they always referenced the ActiveWorkbook. Seeing as how I am trying to point these hyperlinks, anything I do results in a #value error. Any help is appreciated. Thank you.