Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Linking worksheet time and date when saved

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    25
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    hi,
    I'm using excel for project reporting. each project member have their own workbook. I have a central workbook with links from the other with hours spent and so on.
    But I also want to see when they last saved their file.
    How do I do that?
    //B

  2. #2
    New Member
    Join Date
    Apr 2002
    Posts
    25
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I think I found a solution myself. If I use
    =TODAY() or =NOW() in one cell in each persons workbook, and in the main workbook just link in that cell from each person. That would update my main each time someone opens their workbook and do a save with the date/time when this was done...
    Wouldn't it?

    Anyway, great site this! A lot of new input and ideas!

  3. #3
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi

    Not sure if you realise but these are Volatile functions and will update whenever any change is made.

    What you could do is place this code in the Workbook(s) within the Private Module of the Workbook Object. To get there, right click on the Excel icon, top left next to "File" and select "View Code"

    Code:
    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    Sheet1.Range("A1") = Now
    End Sub


    Now just link to this cell.

  4. #4
    New Member
    Join Date
    Apr 2002
    Posts
    25
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks for that!
    Link to that cell, you say... Have I understood this correctly when I say that the row:
    Sheet1.Range("A1")

    states the coordinates of the cell?

    Then I can say:
    Sheet1.Range("K121")
    or??

    Thanks for your help and your time!!
    /// Boo ///

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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