Excel/macro Formula Problem!

  • Thread starter Thread starter nic17
  • Start date Start date
N

nic17

Help!!

I have created a macro and i am trying to pull all the rows from m
data source where in one field 'incomp' the data does not equal blank.
I know its simple, but i cannot figure it out!

I have tried <>" " and i have tried !=" " but neither work!

Can anyone help?
 
You may want to use:

with activesheet
if trim(.cells(irow,"B").value) <> "" then

Another option if you're looping through all the rows is to use
Data|Filter|autofilter. Filter on non-blanks.

Record a macro when you do it and you'll have the starting code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top