+ Reply to Thread
Results 1 to 2 of 2

Tracking Hyperlink Clicks

  1. #1
    Registered User
    Join Date
    02-10-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1

    Tracking Hyperlink Clicks

    I am trying to make a macro that will allow me track the use of hyperlinks in an 2010 excel file. Ideally I would like it so that every time a user clicks the hyperlink it displays the user who clicked the link and the actual date the hyperlink was selected. The code below displays the username and date but the date updates every time i open the file.

    Problem: Basically if I click on a hyperlink it displays the current date and username. If i save the file and open it the following day the username is correct but the date updates to the current day (not the day the link was originally selected).

    Any suggestions would be helpful. Thanks!



    Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
    ThisWorkbook.Activate
    Selection.Offset(0, 2).FormulaR1C1 = "=TODAY()"
    Selection.Offset(0, 1).FormulaR1C1 = Environ("Username")
    ' This Code increases the value of the number by "1",
    ' in the third Cell to the right of the Cell that contains the Hyperlink
    ' for every Hyperlink, on any/every Row.
    End Sub


    pic.png

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Tracking Hyperlink Clicks

    try:
    Please Login or Register  to view this content.
    PS. Edit your post and use code tags as required by forum rules
    Best Regards,

    Kaper

+ 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. Excel Tracking Read Only Clicks
    By Farmerslice in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2011, 10:48 AM
  2. Counting Clicks in Excel
    By crazyhick in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-26-2010, 10:19 AM
  3. [SOLVED] Counting Clicks
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2006, 03:29 AM
  4. Replies: 0
    Last Post: 04-04-2006, 07:45 AM
  5. hyperlink to UPS tracking web site
    By cbrah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-02-2005, 01:06 PM

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