+ Reply to Thread
Results 1 to 3 of 3

Want to copy Data that meet criteria from one Datsheet to another

  1. #1
    Registered User
    Join Date
    01-19-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    2

    Want to copy Data that meet criteria from one Datsheet to another

    Good afternoon, I get a price list/Stock on Hand Sheet from my supplier everyday. I am writing macros to do various checks to ensure that no product that are no longer available are listed also that when new products are added I am notified, etc. I used to this manually with a vlookup formula and then filter it for the #N/A. I have written a macro for the Vlookup to loop and we are getting the result but now I want to copy all the rows, which have the #N/A next to it, into a new worksheet. I tried writing the macro with the filter in it and select the entire sheet and paste but this isn't very efficient.

    Thanks
    Brenton

  2. #2
    Forum Contributor
    Join Date
    01-07-2013
    Location
    south africa
    MS-Off Ver
    Excel 2003-13
    Posts
    210

    Re: Want to copy Data that meet criteria from one Datsheet to another

    Hello Brenton
    Is the problem with the inefficiency (I presume the speed) or does the macro not copy all the desired rows ?
    There are several suggestions, one could be to include a sort at the beginning of the macro and then define a range that is the size of the rows needed. Then you could copy the content of the range.
    Other could be to copy the rows as they calculate the lookup.

    Regards
    Most helpful to mark solved items as such (see help for directions). Star ratings are always welcome.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Want to copy Data that meet criteria from one Datsheet to another

    Brenton:

    Can you post the code you are using?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. copy row to another sheet if criteria is meet
    By roje in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-27-2013, 12:15 AM
  2. Replies: 5
    Last Post: 10-05-2012, 01:21 PM
  3. Copy data if criteria meet in Col C
    By stevewilk in forum Excel General
    Replies: 3
    Last Post: 02-06-2009, 07:43 PM
  4. Copy Rows That Meet Given Criteria
    By BudParker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2008, 05:00 PM
  5. [SOLVED] Copy rows that meet a certain criteria
    By James in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2006, 06:35 PM

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