I am receiving a type mismatch on the line below and am not sure how to make the correction.
The target cell at the moment of the error has "#DIV/0!" as its contents.
The line exists within a with statement:
All of the variables are declared as integers. Are there other sources of potential mismatched data types?
Code:
If .Cells(E, 30 + D).value = "#DIV/0!" Then
The target cell at the moment of the error has "#DIV/0!" as its contents.
The line exists within a with statement:
Code:
With wkbk.Sheets("Ratios")
If IsError(.Cells(E, 30 + D).value) Then
.Rows(E).Delete
End If
If .Cells(E, 30 + D).value = "#DIV/0!" Then
.Rows(E).Delete
End If
If .Cells(E, 30 + D).value = "" Then
.Rows(E).Delete
End If
End With
All of the variables are declared as integers. Are there other sources of potential mismatched data types?