Hi,
I'm trying to search a range and do an offset based on the cell value having a numerical value only.
I've tried to use IsNumeric to find a cell with not text and use it to copy offset with the following code.
I don't think I'm using the
argument correctly but not sure exactly how to change this.
For info, the cells I'm trying to base this on is a time value that is formatted to hh:mm if that makes any difference. I also have other cells in the range that have strings with a mixture of letters and numbers so assumed IsNumeric was the best way to skip over this.
Any assistance would be appreciated.
Thanks,
Ewan
I'm trying to search a range and do an offset based on the cell value having a numerical value only.
I've tried to use IsNumeric to find a cell with not text and use it to copy offset with the following code.
VBA Code:
Set rngB = Range("B3:B1000")
For Each cell In rngB
If IsNumeric(rngB) = True Then
cell.Copy cell.Offset(-1, 9)
cell.Offset(-1).Copy cell.Offset(-1, 6)
cell.Offset(1).Copy cell.Offset(-1, 8)
End If
Next cell
I don't think I'm using the
VBA Code:
If IsNumeric(rngB) = True Then
For info, the cells I'm trying to base this on is a time value that is formatted to hh:mm if that makes any difference. I also have other cells in the range that have strings with a mixture of letters and numbers so assumed IsNumeric was the best way to skip over this.
Any assistance would be appreciated.
Thanks,
Ewan