Hi Don
Thanks for this code
it works but I get a debug on the following line of the code
Loop While Not C Is Nothing And C.Address <> firstAddress
so if I place the following on column A
16/04/2012
16/04/2012
16/04/2012
16/04/2012
18/04/2012
18/04/2012
19/04/2012
18/04/2012
18/04/2012
I get
16/04/2012
16/04/2012
16/04/2012
16/04/2012
18/04/2012
18/04/2012
18/04/2012
18/04/2012
18/04/2012
followed by debug when i run code. It subtracts 1 day from the 19th to
be replaced by 18/04/2012.
Hope this makes sense
Thanks as always for you help
Eddie
Got this sorted changed the code Don gave me slightly and it works
Sub findpart()
With Worksheets("Sheet1").Range("h1:h" & Cells(Rows.Count, "h").End(xlUp).Row)
Set c = .Find(Date, LookIn:=xlValues)
If Not c Is Nothing Then
firstaddress = c.Address
Do
c.Value = Date - 1
'or
'c.offset(,1)=date-1
Set c = .FindNext(c)
If c Is Nothing Then Exit Do
Loop While c.Address <> firstaddress
End If
End With
End Sub
Thanks Don for getting me going the right direction
Much appreciated
Eddie