We help IT Professionals succeed at work.
Get Started

Looking for blank values in a column, without using Autofilter

RWayneH asked
Last Modified: 2015-02-26
This code used to look at AC and tell me if there were any zero's in it.  How would use that same code to tell me if there are any blanks in it instead of zero's?  There is always data in column A.  Issue is that they are all blank.  If there are blanks I need to Exit For... so I need PurReqCreated to = False

How would I rewrite this to first select the proper lngLastRow based on data existing in column A, and second is there a blank in that range in column AC?    then   Set PurReqCreated = False

PurReqCreated = True  'Set as True to start.
'Define column AC and what is in it.
    lngLastRow = Range("AC" & Rows.Count).End(xlUp).Row
    PurReqCreated = Evaluate("NOT(-SUM(--(AC1:AC" & lngLastRow & "=0)))")
    'Evaluates if true or false. No zero's = True, Yes zero's False
'        If PurReqCreated = False Then Exit For

Open in new window

Watch Question
Top Expert 2015
This problem has been solved!
Unlock 2 Answers and 4 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE