+ Reply to Thread
Results 1 to 17 of 17

Copy range max 10 rows

  1. #1
    Registered User
    Join Date
    01-15-2016
    Location
    englanf
    MS-Off Ver
    2007
    Posts
    42

    Copy range max 10 rows

    Hi,

    Is there a way to copy the Range B8::E8, B9::E9 etc to a new sheet MAX 10 rows, the next 10 rows has to be copied a another new sheet. It can be 8 rows but also 18 rows in the data, if 18 rows then 10 rows to new sheet a and 8 rows new sheet b??

    This with a macro


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mdek; 01-27-2016 at 01:17 AM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Copy range max 10 rows

    You should have posted an example spreadsheet.

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 01-25-2016 at 07:40 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Copy range max 10 rows

    (How to) Upload a Workbook directly to the Forum
    (please do not post pictures or links to worksheets)
    • Click Advanced (next to quick post),
    • Scroll down until you see "Manage Attachments",
    • Click that then select "add files" (top right corner).
    • Click "Select Files" find your file, click "open" click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Click "Done" at bottom right to close the Attachment Manager.
    • Click "Submit Reply"
    Note: Please do not attach password protected workbooks/worksheets
    Ensure to disable any Workbook Open/Autorun macros before attaching!
    Ben Van Johnson

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy range max 10 rows

    Here's a quickie:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Registered User
    Join Date
    01-15-2016
    Location
    englanf
    MS-Off Ver
    2007
    Posts
    42

    Re: Copy range max 10 rows

    Thank you for your help.
    I wasnot clear with my question, updated the excel.

    Sheet1 = data, sheet 2,3,4 is how it should be.

    In this case
    26 rows so on sheet 2: 10 rows, sheet 3 10 rows and sheet 4 6 rows.


    I cannt get the codes right???
    Last edited by mdek; 01-26-2016 at 01:23 PM.

  6. #6
    Registered User
    Join Date
    01-15-2016
    Location
    englanf
    MS-Off Ver
    2007
    Posts
    42

    Re: Copy range max 10 rows

    Quote Originally Posted by mehmetcik View Post
    You should have posted an example spreadsheet.

    Please Login or Register  to view this content.

    tryping to adjust the code to my wishes but cannot seem the get it ..

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy range max 10 rows

    It's the same quickie:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-15-2016
    Location
    englanf
    MS-Off Ver
    2007
    Posts
    42

    Re: Copy range max 10 rows

    Thanks works good
    Last edited by mdek; 01-26-2016 at 04:35 PM.

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy range max 10 rows

    The same sheet?

  10. #10
    Registered User
    Join Date
    01-15-2016
    Location
    englanf
    MS-Off Ver
    2007
    Posts
    42

    Re: Copy range max 10 rows

    Quote Originally Posted by xladept View Post
    It's the same quickie:

    Please Login or Register  to view this content.
    Yes the resultas in the same newsheet
    First 10 rows start at B8
    Next 10 rows start at B55
    etc

    Thanks in advance!
    Last edited by mdek; 01-26-2016 at 05:32 PM.

  11. #11
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy range max 10 rows

    Try this:

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    01-15-2016
    Location
    englanf
    MS-Off Ver
    2007
    Posts
    42

    Re: Copy range max 10 rows

    Thanks works fine... last question, i want to write it in a excisting sheet, but comde backwith error xlByRows, xlPrevious).Row.

    I used Worksheet("blad3")

  13. #13
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy range max 10 rows

    Try it again, after renaming "NewSheet".

  14. #14
    Registered User
    Join Date
    01-15-2016
    Location
    englanf
    MS-Off Ver
    2007
    Posts
    42

    Re: Copy range max 10 rows

    Yeah that works, but i want to try to use a existing worksheet in stead of new

  15. #15
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy range max 10 rows

    Please Login or Register  to view this content.

  16. #16
    Registered User
    Join Date
    01-15-2016
    Location
    englanf
    MS-Off Ver
    2007
    Posts
    42

    Re: Copy range max 10 rows

    i tried that but get error at row Rows.Find..

    I will renew the code

  17. #17
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy range max 10 rows

    Hi mdek,

    Thanks for the rep!

    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. copy range from one sheet to another and then copy 5 times skipping ten rows
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2015, 01:35 PM
  2. Replies: 0
    Last Post: 06-24-2015, 06:26 AM
  3. Copy/Paste range of data excluding certain rows and copy to another workbook
    By HoerbigAdm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-12-2012, 02:51 PM
  4. [SOLVED] copy range rows by rows to new worksheet
    By ccsmith in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2012, 03:32 PM
  5. Copy a range to specified rows
    By skysurfer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-27-2010, 01:11 PM
  6. Copy range down the rows
    By DUKE888 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-30-2010, 09:31 PM
  7. Copy range to next available rows.
    By matkyne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2009, 07:24 AM

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