Hyperlink to today's date

G

Grim/Don

That worked, but I got a syntax error (popped up with the second lin
indicated)


David said:
You could select another sheet and return.

or as you asked for selection on A2

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
if target.address <> "$A$2"
Dim val As Long, r As Long
val = Date
r = Application.Match(val, Range("A2:A65536"), 1) + 1
Application.Goto Cells(Application.Max(2, r - 9), 1), Scroll:=True
Application.Goto Cells(r - 3, 1)
End Sub

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

Grim/Don said:
Sweet! Works like a charm, but... I have to share this sheet wit other
and I think that the double-clicking-to-the-date may confuse the (if
they try to edit a cell).

Is there a way to map it to a hot key? Or make it so if I click i A2
it jumps to the date?

(the scrolling to three rows up was a nice touch!)

Thanks for the help again!
http://www.excelforum.com/showthread.php?threadid=260782
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top