Hi guys,
I'm trying to go through a column (column A) and if the date in that column is todays date, I want it to activate the cell in the corresponding row and column C.
Below is what I've done. The line that says ActiveCell.Activate is wrong and I would like to know what to put in there.
Any help is greatly appreciated.
Dim row As Single
Dim startrow As Single
startrow = 10
row = startrow
Worksheets("Tonnes").Range("A:A").Select
date_row = "A"
Do Until Cells(row, date_row) = ""
If Cells(row, date_row) = Date Then
ActiveCell.Activate
End If
row = row + 1
Loop
cheers
I'm trying to go through a column (column A) and if the date in that column is todays date, I want it to activate the cell in the corresponding row and column C.
Below is what I've done. The line that says ActiveCell.Activate is wrong and I would like to know what to put in there.
Any help is greatly appreciated.
Dim row As Single
Dim startrow As Single
startrow = 10
row = startrow
Worksheets("Tonnes").Range("A:A").Select
date_row = "A"
Do Until Cells(row, date_row) = ""
If Cells(row, date_row) = Date Then
ActiveCell.Activate
End If
row = row + 1
Loop
cheers