+ Reply to Thread
Results 1 to 7 of 7

Copy Data to a New Sheet if criteria match (multiple) using a Command Button

  1. #1
    Registered User
    Join Date
    12-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Question Copy Data to a New Sheet if criteria match (multiple) using a Command Button

    Hi

    I am new to this forum and hope someone could help me with a project i am working on.

    My issue is:

    I want to copy a list of data (roughly 1000 rows and 20 columns) to a new sheet if column say, "M" match the criteria (note the criteria are texts)


    Many thanks in advance for your help.

  2. #2
    Registered User
    Join Date
    12-21-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Copy Data to a New Sheet if criteria match (multiple) using a Command Button

    Welcome to the forum bambobeee!
    You try the below code:
    Replace column "D" with your column and "ABC" with your match criteria

    Please Login or Register  to view this content.
    Hope this helps.
    Kiran

  3. #3
    Registered User
    Join Date
    12-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Copy Data to a New Sheet if criteria match (multiple) using a Command Button

    Thanks Kiran
    I will try that now

    Re the code above - how can i change the code to copy to an existing sheet, say "Sheet6"?
    Also, is it possible to only copy selected columns only to the new sheet, say columns A, B, C, D, M and G?
    Last edited by bambobeee; 12-29-2012 at 01:19 PM.

  4. #4
    Registered User
    Join Date
    12-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Copy Data to a New Sheet if criteria match (multiple) using a Command Button

    This is what I used in a separate sheet, it works for matching one value criteria.
    How can I change the code so the criteria is to match texts in Column "D" (which has four possibilities)??

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-21-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Copy Data to a New Sheet if criteria match (multiple) using a Command Button

    See if this works for you.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Copy Data to a New Sheet if criteria match (multiple) using a Command Button

    many thanks! I have integrated your code and it works fine.

  7. #7
    Registered User
    Join Date
    12-21-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Copy Data to a New Sheet if criteria match (multiple) using a Command Button

    Glad to know it had worked. Happy to support any thime!


    Mark your post [SOLVED] if it has been answered satisfactorily, by editing your original post using advanced mode.
    Thank those that provided useful help, its nice and its very well appreciated...use the star on the lower left of the post

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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