I'm trying to detect whether a button exists in each of the cell in column N. If there exists a button, the button should be in a cell.
And I write the code as below. But strangely, how come it always returns me CellNotCovered a false value?
And I write the code as below. But strangely, how come it always returns me CellNotCovered a false value?
Code:
Pr.Range("N" & i).Activate
With ActiveCell
For Each oneShape In .Parent.Shapes
CellNotCovered = CellNotCovered And (Application.Intersect(.Cells, Range(oneShape.TopLeftCell, oneShape.BottomRightCell)) Is Nothing)
Next oneShape
End With