+ Reply to Thread
Results 1 to 2 of 2

Autofilter Criteria Equals #N/A Sometimes

  1. #1
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro Plus 2021
    Posts
    424

    Autofilter Criteria Equals #N/A Sometimes

    Hi,

    I have a macro which runs through a set of 4 worksheets which are identical in format. To finish off the task I need to Autofilter Row 1 with the criteria

    Please Login or Register  to view this content.
    Then copy the contents of A2:C2 to the end of the data in A2 to A2 on a Sheet Called Not On Cons Rep.

    Could someone supply me some code that will do this for four sheets and get around the problem of what to do if there are no values that match Criteria1 i.e. of there are no #N/A's then move on to the next sheet?

    I have attached an example with the final result on the Not On Cons Sheet.

    Many Thanks
    Attached Files Attached Files

  2. #2
    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: Autofilter Criteria Equals #N/A Sometimes

    Hi timbo1957

    There is no code in your upload. Do you have current AutoFilter code? If so, what does it look like look like? What's this code look like?
    I have a macro which runs through a set of 4 worksheets which are identical in format
    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.

+ 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