sunilbsrv2k
Board Regular
- Joined
- May 25, 2018
- Messages
- 73
Hi,
I am trying to search through a range of cells, if any cell contains formula. If the cell contains formula, it has to pop-up "Yes".
But I am getting Error as Object Required. Please help.
here is my code:
I am trying to search through a range of cells, if any cell contains formula. If the cell contains formula, it has to pop-up "Yes".
But I am getting Error as Object Required. Please help.
here is my code:
VBA Code:
Sub chkform()
Rng = Range("R8:R16")
For Each cell In Rng
If cell.HasFormula = True Then
MsgBox "Yes"
End If
Next cell
End Sub