+ Reply to Thread
Results 1 to 4 of 4

Extract Hyperlinked file Saved Date

Hybrid View

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    37

    Extract Hyperlinked file Saved Date

    Hey All,

    Below macro extracts saved date for files that are hyperlinked in a cell. The issue is that sometimes when running the macro all the hyperlinked cells links gets disrupted, where the hyperlinked cell does not work anymore therefore, the macro errors out as per below error messages in the macro. Pretty weird. Wondering if anyone has any input as to why the below macro works sometime and then does not.






    
    Sub timestamp()
    
    
    Dim HL As Hyperlink
       For Each HL In ActiveSheet.Hyperlinks
       On Error GoTo ErrorMsgBox
           HL.Range.Offset(0, 1).Value = HL.Address
           HL.Range.Offset(0, 1).Value = FileDateTime(HL.Range.Offset(0, 1).Value)
       Next
    
    
    
    ErrorMsgBox:
               MsgBox ("Link Not Found")
               Err.Clear
               
               End Sub

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Extract Hyperlinked file Saved Date

    Hello ctguards1987,

    Are the hyperlinks you are working with created by a formula or embedded links?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Extract Hyperlinked file Saved Date

    Hello ctguards1987,

    Are the hyperlinks you are working with created by a formula or embedded links?

  4. #4
    Registered User
    Join Date
    06-05-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Extract Hyperlinked file Saved Date

    No formulas the links are embedded.

+ 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. Automatically add date and username when a file is saved?
    By kelemvor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2015, 02:11 PM
  2. Finding File Creation date, saved date and last modified date
    By david systems in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2013, 05:49 PM
  3. [SOLVED] extract urls from hyperlinked images
    By simarui in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2012, 04:11 PM
  4. Date Last Modified of Hyperlinked Documents + Collaboration of Hyperlinked Documents
    By mr butter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2010, 05:35 AM
  5. Userform - Insert File's last saved Date
    By mcp21x in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2009, 08:57 PM
  6. Extract File From Outlook Message Saved In Windows Folder
    By Panic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2008, 07:32 AM
  7. [SOLVED] how do I show last date file saved?
    By Pete in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2005, 10:06 AM

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