+ Reply to Thread
Results 1 to 18 of 18

copie of row

  1. #1
    Registered User
    Join Date
    12-15-2014
    Location
    belgium
    MS-Off Ver
    2003
    Posts
    75

    copie of row

    First of all, happy newyear to all users of this forum.
    Sorry if I posted the following similar issue before:
    I have a macro that copie the filled rows to the first empty row (cell)
    Now I wish to customize the macro to copie only the last completed row to the first empty row (cell), meaning the next row.
    cover.jpg

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: copie of row

    Perhaps you should post the macro you want customized.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: copie of row

    Good picture. But, the file with code is better.
    To do it for me and help me it is 2 different things!
    Sorry for my english, blame Google translator

  4. #4
    Registered User
    Join Date
    12-15-2014
    Location
    belgium
    MS-Off Ver
    2003
    Posts
    75

    Re: copie of row

    Good idea, stupid me,

    Please Login or Register  to view this content.
    Last edited by fla-ts; 01-07-2017 at 03:52 AM. Reason: forum rules

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: copie of row

    Moderation Removed. Code Tags Added.
    Last edited by Winon; 01-07-2017 at 04:19 AM.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  6. #6
    Registered User
    Join Date
    12-15-2014
    Location
    belgium
    MS-Off Ver
    2003
    Posts
    75

    Re: copie of row

    Think it's okay now
    Last edited by fla-ts; 01-07-2017 at 03:53 AM.

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: copie of row

    Dankie fla-ts,

    Please try the Code below:

    Please Login or Register  to view this content.
    Kind Regards.

  8. #8
    Registered User
    Join Date
    12-15-2014
    Location
    belgium
    MS-Off Ver
    2003
    Posts
    75

    Re: copie of row

    How do I fit this into the macro I have

  9. #9
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: copie of row

    Hi fla-ts,

    They are two different Macros each doing something of their own.

    See attachment as sample.

    Regards.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-15-2014
    Location
    belgium
    MS-Off Ver
    2003
    Posts
    75

    Re: copie of row

    Strange, very strange, with your attached excel file the option two works correctly as is wish.
    When I try the macro at my file it doesn't, I get an error

  11. #11
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: copie of row

    Hello fla-ts,

    When I try the macro at my file it doesn't, I get an error
    Replace the Code in your workbook with the Code below.

    Please Login or Register  to view this content.
    That's it. Fixed.

  12. #12
    Registered User
    Join Date
    12-15-2014
    Location
    belgium
    MS-Off Ver
    2003
    Posts
    75

    Re: copie of row

    SUPER, It works fine, thanks, now i should try the same macro to make one that does the same + delete some of the inputs at the copied row, think this wil not be easy to do.

  13. #13
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: copie of row

    Hi fla-ts,

    ...same macro to make one that does the same + delete some of the inputs at the copied row,...
    If you could tell us what criteria to use to identify which inputs to delete in the copied row, we might be able to assist you further.

  14. #14
    Registered User
    Join Date
    12-15-2014
    Location
    belgium
    MS-Off Ver
    2003
    Posts
    75

    Re: copie of row

    After copied curtain cels have to empty for example the cel that are under column A C G and K
    I think that is difficult to achieve because the copied row is not always the same

  15. #15
    Registered User
    Join Date
    12-15-2014
    Location
    belgium
    MS-Off Ver
    2003
    Posts
    75

    Re: copie of row

    Hey, I've been busy today, found the code that does the job.
    HTML Code: 

  16. #16
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: copie of row

    Hi fla-ts,

    Maybe you have it sorted out now, if so, I am happy for you. However, I have one concern, and that is the ".Range("A" & LR).Resize(2).EntireRow.FillDown".

    Please do me a "flavor", and insert a Blank/Empty row between the lines of Data in question, and run the Macro. I am pretty sure it will end at the Blank Row, rendering the Code unreliable. If that is the case, please let me know, so we can find a solution for that problem.

    Kind Regards.

  17. #17
    Registered User
    Join Date
    12-15-2014
    Location
    belgium
    MS-Off Ver
    2003
    Posts
    75

    Re: copie of row

    - I copie the entire row because there are a lot of formulas in it
    - Strage but inserting a Blank/Empty row between the lines of Data in question seems not to be a problem, the macro still does the jop correctly, even with several empty rows beween the data.

  18. #18
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: copie of row

    Hi fla-ts,

    I also tested it on my side, and I concur with your findings. Well done!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Thanks.

+ 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] copie formula with slight change
    By koqspijker in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-15-2016, 08:15 AM
  2. Replies: 4
    Last Post: 04-11-2016, 02:34 AM
  3. VBA copie coller de données sous condition de période
    By demahom08 in forum Non English Excel
    Replies: 2
    Last Post: 04-08-2013, 07:48 AM
  4. two spreadsheets, how do I copie information from one to another.
    By mmccra2858 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-14-2012, 01:41 PM
  5. Replies: 0
    Last Post: 02-09-2012, 10:06 AM
  6. Cellules décallées si copie tableau word dans excel
    By Boubas1 in forum Non English Excel
    Replies: 1
    Last Post: 04-18-2009, 05:33 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