+ Reply to Thread
Results 1 to 10 of 10

Macro to copy certain cells to new worksheet based on cell value

  1. #1
    Registered User
    Join Date
    12-15-2011
    Location
    Dallas texas
    MS-Off Ver
    Excel 2010
    Posts
    45

    Macro to copy certain cells to new worksheet based on cell value

    Basically here is what I want to do.

    If column N of Project Pipeline =TBD, N, C, then Copy cells B:E & M&N of that row over to Project tracker A:F. As more projects as added and meet criteria or if existing ones change to meet the criteria they are added to the end of the previous result.

    Here is what it currently does
    When I run the macro again it keeps the old data plus returns the old data and the new.

    What I want is it to only return new data at the bottom of the list

    Any help would be appreciated.

    -Mike
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-15-2011
    Location
    Dallas texas
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Macro to copy certain cells to new worksheet based on cell value

    i have modifiyed the code but get no result

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Macro to copy certain cells to new worksheet based on cell value

    Hi,

    try this code in sheet 1 code module

    Please Login or Register  to view this content.
    This will fire every time a value changes in column N and if the value is change to "TBD", copy the range to Sheet 2
    Please take time to read the forum rules

  4. #4
    Registered User
    Join Date
    12-15-2011
    Location
    Dallas texas
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Macro to copy certain cells to new worksheet based on cell value

    Thanks Steffen, but how can i get it to return a chage or add at the bottom of the last querry in sheet 2.
    See my workbook attached
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Macro to copy certain cells to new worksheet based on cell value

    In the file you have, try chaning a value in column 14 (N) as soon as you change a value there to "TBD" the cells will be appenden to the tracking page.

  6. #6
    Registered User
    Join Date
    12-15-2011
    Location
    Dallas texas
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Macro to copy certain cells to new worksheet based on cell value

    It does work but if something in sheet 1 row 23 changes to TBD, N, C, OR H i want it to pull over to sheet two the next avaliable row not inline.

    Is that possible?

  7. #7
    Registered User
    Join Date
    12-15-2011
    Location
    Dallas texas
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Macro to copy certain cells to new worksheet based on cell value

    Anyone have any Ideas?

  8. #8
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Macro to copy certain cells to new worksheet based on cell value

    Then just modify it,

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    12-15-2011
    Location
    Dallas texas
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Macro to copy certain cells to new worksheet based on cell value

    I need it to pull more than one value (TBD, C, N, or H)

    I did this but it didnt work
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    12-15-2011
    Location
    Dallas texas
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Macro to copy certain cells to new worksheet based on cell value

    Marking this as solved. the code below worked . Thanks for all the help its much appreciated.

    Please Login or Register  to view this content.

+ 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