Results 1 to 11 of 11

External File Properties In Cells. "LastSavedTime"

Threaded View

Bluewhistler External File Properties In... 02-02-2010, 09:12 AM
vikas.bhandari Re: External File Properties 02-02-2010, 11:19 AM
Bluewhistler Re: External File Properties 02-02-2010, 11:55 AM
vikas.bhandari Re: External File Properties 02-03-2010, 03:23 AM
Bluewhistler Re: External File Properties 02-03-2010, 04:07 AM
Bluewhistler Changing Calculation Options... 02-03-2010, 04:36 AM
GianIzar Re: Changing Calculation... 04-18-2020, 11:01 AM
FDibbins Re: Changing Calculation... 04-18-2020, 11:35 PM
vikas.bhandari Re: External File Properties... 02-03-2010, 08:03 AM
vikas.bhandari Re: External File Properties... 02-03-2010, 08:27 AM
Bluewhistler Problem Solved Thx Vikas... 02-03-2010, 09:40 AM
  1. #1
    Registered User
    Join Date
    02-02-2010
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    47

    External File Properties In Cells. "LastSavedTime"

    Hi,

    I was looking for a way to get external file froperties into a cell!
    for example:

    Last modified date.

    this is what I allready found/tried.

    =lastsaved("c:\temp\book1.xls")
    
    Function lastsaved(FileName As String)
    Set fs = CreateObject("Scripting.FileSystemObject")
    Set f = fs.GetFile(FileName)
    lastsaved = f.datelastmodified
    End Function
    I use this for other filetypes and it works just fine. Except that I somehow can't seem to make the cell to automaticly update. After the linked file has been edited/saved and has a new lastsave date/time. It doesn't show the new time in that cell. not even if I close/save the workbook and reopen it.
    It only changes the Last saved date when I go into the cell and press enter.

    The only way this works is when I (for example):

    - Put the file link c:\docs\test.txt in cell A1 in another Book2.xls (A1 shows c:\docs\test.txt )
    - Link to that cell from Book1-A1 with this formula =C:\docs\[Book2.xls]Sheet1!A1 (result showing in cell is c:\docs\test.txt )
    - Then put =Lastsaved(A1) in Book1-A2 (result is last saved date and time (cell properties set to dd:mm:ss)

    Now when I reopen the document excel asks for link update.
    This works but surely there must be an easier way.
    Last edited by Bluewhistler; 02-19-2010 at 04:10 AM. Reason: This Thread is Solved By Vikas

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1