+ Reply to Thread
Results 1 to 2 of 2

In a cell, show modified date for a linked document

  1. #1
    Registered User
    Join Date
    08-19-2013
    Location
    Baltimore, MD USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    In a cell, show modified date for a linked document

    Hello all,

    I found, in another thread, the code for showing the modified date of a document in a cell, but I would like to take that a step further to show the modified date of a document from which I've linked data.

    For example, I have 4 documents that contain funding information. Each document is updated many times throughout the day by different staff members. I created a "Daily Summary" document in which I linked the sums from the other 4, each on its own row, so that I can have a quick sum of all activity. The issue is that I haven't a clue if I'm looking at data from yesterday or from 10 minutes ago. Adding a 'modified date' for each of the 4 lines items in the summary would do that for me, but I don't know how to write the code.

    The code to show the modified date of my "Daily Summary" document is:
    "Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    Worksheets(""Sheet1"").Range(""E1"").Value = Now()
    EndSub"

    How would I amend it to show the modified date of the linked documents? I've tried playing around with the name of the worksheet, but I'm having no luck.

    Any ideas would be appreciated!

    Thanks,
    Kay

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: In a cell, show modified date for a linked document

    Hi Kay,

    A lot of quotes in your example - try:

    Please Login or Register  to view this content.
    or however else you want to format it
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Show today's date if specified cell is modified
    By xavpg in forum Excel General
    Replies: 7
    Last Post: 02-28-2012, 07:16 PM
  2. [SOLVED] Show date cell modified
    By manxman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-22-2006, 07:50 PM
  3. Replies: 0
    Last Post: 03-17-2006, 06:50 PM
  4. Automatically show new date in the modified cell
    By NYBoy in forum Excel General
    Replies: 9
    Last Post: 10-04-2005, 11:55 AM
  5. show date modified in a cell
    By Lana in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2005, 07:06 PM

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