+ Reply to Thread
Results 1 to 4 of 4

Copy random rows

  1. #1
    Registered User
    Join Date
    09-19-2014
    Location
    montreal, canada
    MS-Off Ver
    2010
    Posts
    3

    Copy random rows

    Hi
    How to copy random rows without duplicates from one sheet to another in vba?
    your help will be appreciated

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy random rows

    'RANDOMIZATION OF LIST or RANDOM SELECTIONS FROM A LIST
    This can be done by macro or by formula. This page shows examples/techniques of both. (example files demonstrate each method)
    https://sites.google.com/a/madrocket.../randomization


    Option 2 is the simplest in my mind or possibly a combination of the two?
    Last edited by JBeaucaire; 12-26-2019 at 05:12 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Copy random rows

    ad hoc code
    Please Login or Register  to view this content.
    Copies random rows from the used range on active sheet (if not sheet2) to Sheet2.
    Number of copies here is 5 (on second line). You can change this directly, or by input box, or however you like.

  4. #4
    Registered User
    Join Date
    09-19-2014
    Location
    montreal, canada
    MS-Off Ver
    2010
    Posts
    3

    Re: Copy random rows

    Thanx a lot i appreciate the help.
    My regards

+ 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. Random selection of rows
    By bremen22 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-10-2013, 10:27 AM
  2. remove random rows
    By JakeMann in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-14-2013, 07:13 AM
  3. [SOLVED] Copy Random Rows
    By goffa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-21-2013, 07:36 PM
  4. Random selection of rows
    By Hoosaskin in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-23-2012, 05:18 PM
  5. Deleting random rows
    By kenelder in forum Excel General
    Replies: 1
    Last Post: 07-07-2009, 02:05 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