+ Reply to Thread
Results 1 to 2 of 2

Generating the number of rows based on the number that a CELL has using record macros

  1. #1
    Registered User
    Join Date
    10-03-2017
    Location
    Australia, Sydney
    MS-Off Ver
    2016
    Posts
    4

    Post Generating the number of rows based on the number that a CELL has using record macros

    Hi, as the title says how would one go about doing this. For instance if in a new spreadsheet Cell A2 had the number 6 in it, how do I use the record macro (with relative reference) to generate integers 1 to 6 say in cells B4 to B10. I don't want to know how to write the VBA code for this since that is straightforward.

  2. #2
    Forum Contributor
    Join Date
    12-02-2010
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2013, 2016
    Posts
    100

    Re: Generating the number of rows based on the number that a CELL has using record macros

    selsunblue,

    The record macro feature is going to have you end up with VBA code anyway, so i'll just provide that:
    Please Login or Register  to view this content.
    That will add numbers starting with 1 and increasing downward until it reaches the number listed in A2.

    Hope that helps.

    DarkF1ame
    Mark as "Solved" and add Reputation if applicable.

+ 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] Filling n number of rows based on Number in cell.
    By catscats11 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2017, 10:26 AM
  2. Replies: 12
    Last Post: 01-31-2015, 02:11 AM
  3. [SOLVED] Generating: letters from cell contents, & numbers based on number of cells containing data
    By excellenct in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2014, 06:14 AM
  4. [SOLVED] Generating values in number of cells based on adjacent cell values
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2014, 04:34 PM
  5. [SOLVED] Excel VBA/Macro - Copy Number of Rows based on the number in a cell to another sheet
    By diane.alexander58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2012, 11:32 AM
  6. Generating the next number automatically based on a previous cell value
    By hpfeiffer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-04-2012, 03:04 AM
  7. VBA code to unhide X number of rows based on a number entered into a cell above
    By gazza365 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2010, 08:48 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