+ Reply to Thread
Results 1 to 4 of 4

Generate worksheet with sample data

  1. #1
    Registered User
    Join Date
    11-08-2015
    Location
    Croatia
    MS-Off Ver
    2016
    Posts
    53

    Generate worksheet with sample data

    Hello,

    does anyone have a simple vba function to generate worksheet with, for example, 100 columns and 10.000 rows?
    You can help me too.

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Generate worksheet with sample data

    Hi,
    What kind of data you wish to have in this sample? Numbers?
    One way to do this could be create array 100x10000, fill it with random numbers and then return this array to the sheet range.

    This one will generate 10x10 sample:
    Please Login or Register  to view this content.
    Last edited by kasan; 01-05-2017 at 07:54 AM.

  3. #3
    Registered User
    Join Date
    11-08-2015
    Location
    Croatia
    MS-Off Ver
    2016
    Posts
    53

    Re: Generate worksheet with sample data

    Does anyone know the way without the array?

  4. #4
    Registered User
    Join Date
    11-08-2015
    Location
    Croatia
    MS-Off Ver
    2016
    Posts
    53

    Re: Generate worksheet with sample data

    Thank you kasan.

    I have changed your code a little:

    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)

Similar Threads

  1. Generate n sample with a certain level of confidence
    By mils in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-31-2015, 10:17 AM
  2. Replies: 1
    Last Post: 02-25-2014, 10:54 AM
  3. How to generate a random sample and repeat it 1000 times
    By random_Monkey in forum Excel General
    Replies: 4
    Last Post: 08-15-2013, 10:15 AM
  4. Replies: 2
    Last Post: 02-05-2013, 04:27 PM
  5. Randomly sample 30 columns from worksheet input and print them in worksheet Output
    By Savan87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2012, 01:00 PM
  6. Generate data and save in separate worksheet
    By cgithu in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-24-2012, 07:38 AM
  7. Replies: 1
    Last Post: 04-06-2007, 07:59 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