ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count the number of times a hyperlink is viewed (https://www.excelbanter.com/excel-worksheet-functions/126692-count-number-times-hyperlink-viewed.html)

RocketMan

Count the number of times a hyperlink is viewed
 
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?

Gary''s Student

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?


RocketMan

Count the number of times a hyperlink is viewed
 
Very excellent! I created a sub in VB and it worked great. Thanks a milliion.

"Gary''s Student" wrote:

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?


Dave Peterson

Count the number of times a hyperlink is viewed
 
Wouldn't it be easier to put one of those web counters on the site?

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?


--

Dave Peterson

Gary''s Student

Count the number of times a hyperlink is viewed
 
I don't know enough about "webbing" to implement something like that.
--
Gary's Student
gsnu200701


"Dave Peterson" wrote:

Wouldn't it be easier to put one of those web counters on the site?

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?


--

Dave Peterson



All times are GMT +1. The time now is 01:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com