+ Reply to Thread
Results 1 to 5 of 5

AuotFilter

  1. #1
    Registered User
    Join Date
    09-21-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    18

    AuotFilter

    Hi
    I need to add a code that says if The criteria = 0 or is Blank (Like in Sheet(King) C3:G3) then nothing will be copied to Sheet(King). As you can see it will still copy the headers even though there is nothing in the Criteria cell.

    This entire Marco may be wrong. This is the first one I have tried to build and I have never had any exposure to it before I starting this a couple days ago.

    Thanks for the Help!
    Attached Files Attached Files
    Last edited by Nick3535; 09-28-2010 at 03:12 PM.

  2. #2
    Registered User
    Join Date
    09-21-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: AuotFilter Help

    Anybody out there?
    Not to be pushy but I need help ASAP!!!!!!!

    The macro I have now works. I just need a code that will do what I tried to explain earlier.

    Thanks. I really appreciate any help.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: AuotFilter Help

    Hi Nick3535
    See if this code helps
    Please Login or Register  to view this content.
    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    09-21-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: AuotFilter Help

    John
    That’s perfect. Thanks for the help!!

    One quick question. Do you know of any programs or books orsomething like that I could get to learn how to do this? It took me almost 3 days to make that simple code.

    Nick

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: AuotFilter

    Hi Nick

    Glad it helps. Regarding your question...my personal experience (which is limited) is that Google is your best friend. Probably 2 years ago, I was having a problem similar to yours. I wrote a macro that performed an auto filter but it wasn't finding any records which screwed up later steps in the procedure. So, I Goggled on something like "Count visible cells VBA" figuring if I could count them, I could make the procedure deal with it if it came up with no records.

    Bottom line, there's not a problem you'll run into that hasn't been seen before and it's more than likely been discussed on the Web. That's where I do my research. Books give examples but they're typically very simplistic. You'll get more specific answers on the Web.

    Hope this helps. If you're satisfied with the solution, please mark your thread as solved. A tip of the scales (upper right hand corner of any post on your thread) will be greatly appreciated.

    John

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1