Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I have read a number of posts, on this subject but the answer has been elusive. Essentially my worksheet gets reused each year, so to find the correct first day of the year I set a variable to cell B6 in the first line. This cell does hold a date value. On the sheet containing the column of dates, I set the first date in the column to be = the date in B6. So essentially they should hold the exact same date value, the only difference is how I formatted the date to show. However, the code does not find the date! Any insights would be appreciated. Greg FindDate = ActiveSheet.Range("B6") Worksheets("Seg Proj").Activate Set FoundCell = Columns("A:A").Find(What:=(FindDate), LookIn:=xlFormulas) 'check to see if found for debug purposes If FoundCell Is Nothing Then MsgBox "wasn't found" Else MsgBox FoundCell.Row End If FoundCell.Activate |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding the earliest date from a range of cells | Excel Worksheet Functions | |||
finding a max date in a range in vlookup data | Excel Discussion (Misc queries) | |||
Finding dates within a date range | Excel Worksheet Functions | |||
Finding Dates in a date range | Excel Discussion (Misc queries) | |||
finding a range of cells to match a date | Excel Programming |