Hi guys,
I'm new to Macro's etc but have to sort something for work that requires Macro's. I'm slowly trying to get my head round it by doing basic things that slowly get more complex - walk before I run!
Anywho, the first thing I need to do, is a button that'll take me to the current date. My spreadsheet is set out so I have the list of dates in column A (Cells A6-A561), and a =TODAY() formula in cell B5. How can I get it to go to the date in ColumnA, that's shown in B5?
I've done some googling, and so far have the following. It may be horrifically wrong, but I'm not sure!
Like I said, I'm new to this and any help is greatly appreciated.
Cheers!
I'm new to Macro's etc but have to sort something for work that requires Macro's. I'm slowly trying to get my head round it by doing basic things that slowly get more complex - walk before I run!
Anywho, the first thing I need to do, is a button that'll take me to the current date. My spreadsheet is set out so I have the list of dates in column A (Cells A6-A561), and a =TODAY() formula in cell B5. How can I get it to go to the date in ColumnA, that's shown in B5?
I've done some googling, and so far have the following. It may be horrifically wrong, but I'm not sure!
I *think* that should match B5 to one of the cells in that range? How do I then make it go to that result?Public Sub Today()
myvalue = Application.Match(CLng(B5), Range("A6:A561"), 0)
Application.Goto rGoTo, True
On Error Resume Next
End Sub
Like I said, I'm new to this and any help is greatly appreciated.
Cheers!