+ Reply to Thread
Results 1 to 5 of 5

Macro to insert rows

  1. #1
    Registered User
    Join Date
    09-14-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    82

    Cool Macro to insert rows

    Hi,
    I am looking for a macro to insert a number of rows. This number of rows will vary (i.e. I may need 20 one day, 30 the next and so on), so my thinking is that the macro would refer to a number in cell A1 and then insert the required number of rows.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Macro to insert rows

    Where do you want the rows inserted?

    BSB

  3. #3
    Registered User
    Join Date
    09-14-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    82

    Cool Re: Macro to insert rows

    Starting at cells A15 please. Thanks for the reply.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Macro to insert rows

    Maybe something like:
    Please Login or Register  to view this content.
    BSB

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Macro to insert rows

    Or even this, which would negate the need to have the number in A1, but instead asks for you to state the required number of rows in an input box.
    Please Login or Register  to view this content.
    BSB
    Last edited by BadlySpelledBuoy; 10-27-2016 at 05:10 AM.

+ 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] Macro to insert specific number of rows, populate rows with data above except date
    By Melissa Camp in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-08-2015, 03:59 PM
  2. Replies: 0
    Last Post: 11-12-2013, 04:56 PM
  3. [SOLVED] Macro code to insert 3 rows on spreadsheet with variable number of rows
    By D18GE in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2013, 07:33 AM
  4. Replies: 0
    Last Post: 05-10-2013, 12:04 PM
  5. [SOLVED] Macro to insert blank rows so that the total number of rows with data is equal to 1021
    By nsm1411 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2013, 10:25 AM
  6. Replies: 2
    Last Post: 04-21-2011, 07:13 PM
  7. Macro to Hide and Unhide Rows but still be able to insert rows
    By majasmi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2011, 09:25 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