I've tried count, counta, and countblank functions for this code, but it doesn't work. My code is:
Sheet1.Activate
If WorksheetFunction.CountBlank(Range(Cells(3, 3), Cells(50, 3))) > 0 Then
MsgBox "First Enter Data!"
Else
...
I want excel to do some calculations if all of the cells in range C3 to C50 are containing a number, and return the msgbox if they aren't. All the other codes are true. I've checked them several times. The problem is that even when all of those cells have numbers, the msgbox appears. I've tried many ways, but it keeps going wrong. Please help me. Thanks a lot.