+ Reply to Thread
Results 1 to 5 of 5

copying a row that meets certain criteria to another worksheet.

  1. #1
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Perth
    MS-Off Ver
    Excel 2010
    Posts
    208

    copying a row that meets certain criteria to another worksheet.

    Hi guys,

    Somehow I cannot figure out how to copy a cell that contains type 'BB' in column X, to a table in sheet 1.

    Please see attached the sample excel file below.

    CHeers,
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: copying a row that meets certain criteria to another worksheet.

    Hi

    Try this:

    Excel sample file.xlsm
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Perth
    MS-Off Ver
    Excel 2010
    Posts
    208

    Re: copying a row that meets certain criteria to another worksheet.

    Hi jarj1106,

    Can we make it automated? instead of using a command button?
    Say, if the cell value chagnes to BB or else, the table in sheet 1 automatially updates the chagnes?? without manually clicking the button?

    Cheers,

  4. #4
    Valued Forum Contributor
    Join Date
    02-05-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    571

    Re: copying a row that meets certain criteria to another worksheet.

    Change "Private Sub CommandButton1_Click()" to "Worksheet_SelectionChange(ByVal Target As Range)"

    But you will need to modify it, because if sheet1("type").value change from i.e "BB" to "AA", it will not automatically change the result on sheet2.

    add this code :
    Please Login or Register  to view this content.
    Last edited by SDCh; 02-08-2013 at 03:43 AM.

  5. #5
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Perth
    MS-Off Ver
    Excel 2010
    Posts
    208

    Re: copying a row that meets certain criteria to another worksheet.

    Thanks SDCH and jraj1106, I think that will do Cheers.

+ 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