gmcgough600
New Member
- Joined
- Nov 21, 2017
- Messages
- 33
- Office Version
- 365
Hi, hope someone can help. I'm trying to run this code but when the cell value is "#N/A# I get an error 'type mismatch', note that the cell value is text not the formula =NA().
I get this error:
"Run-time error '13':
Type mismatch"
Thanks!
Code:
If ActiveCell.Value = "#N/A" Then
ActiveCell.ClearContents
ElseIf ActiveCell.Value = "Error" Then
ActiveCell.ClearContents
Else
End If
I get this error:
"Run-time error '13':
Type mismatch"
Thanks!