How can i also delete away the #N/A with this code??
Code:
Sub MyDeleteFormula()
Dim myRange As Range
Dim myRange1 As Range
Dim myCell As Range
' Set range to check
Set myRange = Range("C5:J35")
Set myRange1 = Range("M5:T35")
' Loop through each cell in range and delete contents if value is blank
For Each myCell In myRange
If myCell.Value = "" Or myCell.Value = 0 Then myCell.ClearContents
Next myCell
For Each myCell In myRange1
If myCell.Value = "" Or myCell.Value = 0 Then myCell.ClearContents
Next myCell
End Sub
Code: