Should be simple, but for me not so much. Here's what I'm trying to do: IF there are any formula cells in my selection shut it down, otherwise do my stuff. My problem is when there are no formula cells, excel throws up an error saying no cells are found. Any help is appreciated.![]()
If Selection.Cells.SpecialCells(xlCellTypeFormulas).Count > 0 Then MsgBox "Macro is exiting because there are" & vbCrLf & _ "formulas in the range to be worked.", vbOKOnly + vbCritical, "CAN'T PROCESS FORMULA CELLS" Exit Sub Else MsgBox "No Formulas" 'do the rest of my stuff End If
Bookmarks