+ Reply to Thread
Results 1 to 2 of 2

Insert Randon Number in Next Cell Down Macro

  1. #1
    Registered User
    Join Date
    11-12-2011
    Location
    Leeds, Endland
    MS-Off Ver
    Excel 2007
    Posts
    12

    Insert Randon Number in Next Cell Down Macro

    There may be an easier way to do this but this is what im wanting and how I did it.

    I've recorded a macro to insert a random number between 0.50 and 0.70 into cell A1. I've used a macro because I don't want the formula visible when I click on cell A1 and because I don't want it to change every time I open up the spreadsheet. I would like my macro to do the exact same thing in the next cell down the next time I press the button and so on and so on.

    This is how ive done it. I start macro record, click data tab, click data analysis, click Random Number Generation and OK, this then brings up the box where I get it to insert my requested random number in my selected cell, I then format this cell to 2 decimal places, I then stop recording macro. (see below)

    Please Login or Register  to view this content.

    Any help would be appreciated, Im a novice to macros so easy instructions please!
    Last edited by alansidman; 12-01-2015 at 09:08 AM.

  2. #2
    Registered User
    Join Date
    11-18-2015
    Location
    Madrid
    MS-Off Ver
    2016
    Posts
    95

    Re: Insert Randon Number in Next Cell Down Macro

    Hi, this should work:

    Please Login or Register  to view this content.
    Hope it helps!
    excelbat.com: free Excel tools, macros...

+ 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. Macro to insert text into a cell based on another cell's number
    By ahovancsak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-15-2015, 12:47 PM
  2. Randon Number Selection formula that excludes previously selected number
    By lhousesoccer in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-25-2014, 05:52 PM
  3. [SOLVED] Macro to insert row if cell(i,1) notequal cell(i,1)+1 and insert certain values in row.
    By mareike in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-16-2013, 03:29 AM
  4. Macro to insert number of rows where cell is highlighted or pointed
    By Optimus81 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2012, 11:51 AM
  5. macro: insert specified number of rows depending on referenced cell value
    By cffurillo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2012, 11:37 AM
  6. To get sum of data between two randon cell in a row
    By Chetan Chauhan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2009, 06:15 AM
  7. randon number
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2008, 07:01 AM

Tags for this Thread

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