Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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? |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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? |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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? |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Loop Macro a variable number of times | Excel Discussion (Misc queries) | |||
Count the number of times a cell value is within a specific range | Excel Worksheet Functions | |||
Count number of times two columns have desired values | Excel Discussion (Misc queries) | |||
How to count the number of times something occurs within a certain month | Excel Worksheet Functions | |||
how do i count how many people are working between two times in e | Excel Worksheet Functions |