Logging Date and Time

Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Logging Date and Time

  1. #1
    Board Regular
    Join Date
    Dec 2002
    Posts
    96
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Logging Date and Time

     
    I have a field that is a list of hyperlinks to websites, is there a way that in the a particular column I can get a date/time stamp when I follow the hyperlink?

  2. #2
    MrExcel MVP Damon Ostrander's Avatar
    Join Date
    Feb 2002
    Location
    Denver, Colorado USA
    Posts
    4,240
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Logging Date and Time

    Hi Dream,

    Yes. Just as an example, this code will put the Date-time stamp in column E of the same row in which a hyperlink is followed:

    Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
    Target.Parent.EntireRow.Cells(1, 5) = Now
    End Sub

    This is a worksheet event procedure, so must be placed in the worksheet's event code module. To do this, right-click on the worksheet's tab, select View Code, and paste this code into the Code pane.
    Keep Excelling.

    Damon

    VBAexpert Excel Consulting
    LinkedIn Profile http://www.linkedin.com/pub/damon-ostrander/7/79/a93
    AllExperts Profile http://www.allexperts.com/ep/1059-30...-Ostrander.htm

  3. #3
    Board Regular
    Join Date
    Dec 2002
    Posts
    96
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Logging Date and Time

    thanks for the fast reply, does this not work in excel 97? I usually am in xp, but here at work, in 97, and when I click a hyperlink it closes the workbook, and when reopened no date.

  4. #4
    Board Regular
    Join Date
    Dec 2002
    Posts
    96
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Logging Date and Time

    NM, I found my problem, I was using the hyperlink formula, If I just use Insert/Hyperlink (Ctrl K) to put my hyperlinks in it works fine.

  5. #5
    MrExcel MVP Damon Ostrander's Avatar
    Join Date
    Feb 2002
    Location
    Denver, Colorado USA
    Posts
    4,240
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Logging Date and Time

      
    Hi Dream,

    Fast work! I see it took you 4 minutes to find the problem and post the message.

    Damon

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
  •  

 

 
DMCA.com