So I found this on the microsoft website (https://msdn.microsoft.com/en-us/library/office/ff839746.aspx) when I was trying to program something in VBA
expression .Find(What, After, LookIn, LookAt, SearchOrder, SearchDirection, MatchCase, MatchByte, SearchFormat) expression A variable that represents a Range object.
What: The data to search for. Can be a string or any Microsoft Excel data type.
And I wanted my code to find the first cell with the "Date" data type in a certain range, temp.
Dim temp As Range, next_date As Range
temp = Range("A63:A70")
Set next_date = temp.Find(Date)
Debug.Print (next_date)
But I keep getting the "Object variable not set" error, which I think means it was unable to find a date in the range. There is definitely a date in the range, but when I mouse over the "Date" I typed in the .Find(), I realise it shows the date today.
I think this code might be trying to look for today's date in the range. But I just want it to find a cell with a generic "Date" data type, is there any way to do this without specifying a specific date? Thanks!!