View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default Count the number of times a hyperlink is viewed

Put the following code in ThisWorkbook code area:

Private Sub Workbook_SheetFollowHyperlink(ByVal Sh As Object, ByVal Target
As Hyperlink)
Set t = ActiveCell.Offset(0, 1)
t.Value = t.Value + 1
End Sub

So if you have a hyperlink in cell Z100, everytime it is clicked, the value
in AA100 will be incremented.


It is always the cell just to the right of the cell containing the link.

If you are unfamiliar with VBA, See:

http://www.mvps.org/dmcritchie/excel/getstarted.htm



--
Gary's Student
gsnu200701


"RocketMan" wrote:

I have a spreadsheet with hyperlinks to policies and procedures. Management
wants me to count if and how many times a team member clicks on a particular
hyperlink. I have about 100 team members and so far I've copied the
spreadsheet for each person as some of the procedures have to be invisible to
them. I'm not sure if CountIf is the right way to approach this or not. Can
anyone help?