justin 00089
New Member
- Joined
- Jun 24, 2019
- Messages
- 10
Trying to find time gaps based off each cell and its offset (the next cell down) in a dynamic range. My error message right now is 'object required' in the if statement.
For Each cell In picks()
If WorksheetFunction.Abs(cell.Offset(-1, 0).Value - cell.Value) > 0.02083 Then
do something
ElseIf WorksheetFunction.Abs(cell.Offset(-1, 0).Value, -cell.Value) = cell.Value Then
do nothing
end if
Next Cell
For Each cell In picks()
If WorksheetFunction.Abs(cell.Offset(-1, 0).Value - cell.Value) > 0.02083 Then
do something
ElseIf WorksheetFunction.Abs(cell.Offset(-1, 0).Value, -cell.Value) = cell.Value Then
do nothing
end if
Next Cell