Hi, i have found this code here which i am trying to adjust to my needs
What i am trying to do is not to find a specific value, but find the cells in col H that have a date value (any date) in them and then i would want to use offset to add the value of offset(0,4) to a variable. i have tried different methods. The code above is the first part of what i am trying to do. I would really appreciate some help with this.
Thanks
Ally.
Code:
Sub finddate()
Dim cl As Range
Dim lastrow As Long
lastrow = Worksheets("Filter_CSM").Range("A65536").End(xlUp).Row
for each cl in Range("h2:H" & lastrow).Find(What:=DateValue(<>""))
If Not cl Is Nothing Then cl.Select
loop
End Sub
What i am trying to do is not to find a specific value, but find the cells in col H that have a date value (any date) in them and then i would want to use offset to add the value of offset(0,4) to a variable. i have tried different methods. The code above is the first part of what i am trying to do. I would really appreciate some help with this.
Thanks
Ally.