+ Reply to Thread
Results 1 to 7 of 7

Macro copying rows to a new sheet based on a specific value

  1. #1
    Registered User
    Join Date
    06-23-2015
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    60

    Macro copying rows to a new sheet based on a specific value

    Hi Dears,

    I am trying to copying all rows from Sheet "DRP data" to sheet "DRP Rework",

    I would like the macro to copy all the rows containing a "A" letter in column U:U

    I also would like the macro to erase the previous data contained in sheet DRP rework before copying all info (in order to make sure to do not have a double counting)

    Here-below the starting code i have used but I cannot get the wanted info... could you help me in correcting it please ?

    Please Login or Register  to view this content.
    Thanks in advance !

    Steffen
    Last edited by St3ff3ns; 01-03-2018 at 07:57 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,285

    Re: Macro copying rows to a new sheet based on a specific value

    How is this different to your other thread, please?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-23-2015
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Macro copying rows to a new sheet based on a specific value

    Hi Ali,

    The other is solved and this is another macro executing another action,

    Rgs,

  4. #4
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Macro copying rows to a new sheet based on a specific value

    Hello Steffen,

    Try adjusting your code as follows:-


    Please Login or Register  to view this content.
    I hope that this helps.

    Cheerio,
    vcoolio.

  5. #5
    Registered User
    Join Date
    06-23-2015
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Macro copying rows to a new sheet based on a specific value

    Hi Vcoolio,

    I have adapted as proposed, however, here-below the run time error I get :

    Run-time error '1004':
    Application-defined or object-defined error

    Any idea why this has popped up?

    Thanks !

  6. #6
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Macro copying rows to a new sheet based on a specific value

    another option

    Please Login or Register  to view this content.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  7. #7
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Macro copying rows to a new sheet based on a specific value

    Hi Steffen,

    It could be just a minor thing but its hard to tell without seeing your workbook set up.

    Could you please upload a sample of your workbook so I can have a look and do some testing with your layout. If you have sensitive data in your workbook, then please use dummy data (just a few rows will do).

    Cheerio,
    vcoolio.

+ 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. [SOLVED] Macro copying rows to coulm based on specific criteria
    By srinivasan1965 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-27-2016, 11:52 PM
  2. [SOLVED] Macro for copying rows with cells with specific values from 1 sheet to another
    By Rizla21 in forum Excel Programming / VBA / Macros
    Replies: 40
    Last Post: 12-19-2013, 11:14 AM
  3. Copying Rows Based on Specific Cell Match
    By ywendyh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2013, 07:35 PM
  4. Replies: 6
    Last Post: 06-27-2012, 04:38 PM
  5. Copying rows from another sheet based on specific criteria
    By jamesbrown008 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2011, 01:53 PM
  6. Replies: 0
    Last Post: 02-02-2011, 06:42 PM
  7. Macro for copying specific rows to a new sheet.
    By Chintu Raju in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-17-2008, 12:25 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