Logging Date and Time

DreamAlchemist

Board Regular
Joined
Dec 18, 2002
Messages
96
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?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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.
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,805
Messages
6,121,665
Members
449,045
Latest member
Marcus05

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top