Hi,
I have a row on sheet that displays dates but has formulas as the values in the cells.
I use this coding to try and find the data
Range("a1").Activate
myrange = Range("A1:bx1")
myrange.Find(What:=ddate, After:=Range("a1"), LookIn:=xlValues, LookAt _
:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False).Activate
this works fine when ddate is the value in the cell as well as the text, but if the value is a fomula like =b1+1, it cant find the date. how can i get round this.
I have tried Xlbo's way and it did not work - it says object required
thanks
Hope this is of use, Rob.![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)
I have a row on sheet that displays dates but has formulas as the values in the cells.
I use this coding to try and find the data
Range("a1").Activate
myrange = Range("A1:bx1")
myrange.Find(What:=ddate, After:=Range("a1"), LookIn:=xlValues, LookAt _
:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False).Activate
this works fine when ddate is the value in the cell as well as the text, but if the value is a fomula like =b1+1, it cant find the date. how can i get round this.
I have tried Xlbo's way and it did not work - it says object required
thanks
Hope this is of use, Rob.
![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)