+ Reply to Thread
Results 1 to 3 of 3

Insert User Selected Number of Blank Rows

  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Insert User Selected Number of Blank Rows

    I've scoured the forum and the internet but can't find exactly what I'm looking for.

    I want to a macro that will allow me to insert a user specified number of blank rows, based on the cell or row selected by the user. For example I may want to insert 10 blank rows below row 20 and then at another time insert 5 rows below row 35 etc.

    I found this code, but it inserts the user specified number of rows between every entry, which I don't want. I simply want to be able to selelct a row, run the macro, enter the number of blank rows to insert below just the selected row and that's it, until the next time I run the macro, when I want it to do the same thing, based on the row selelcted and the number of rows entered.

    I don't know enough VBA to know how to do this, so any help would be greatfully received. This code has the basic principal, but I guess I don't want it to loop!

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    You should just be able to remove the loop and the hard coded range.

    Untested.

    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Insert User Selected Number of Blank Rows

    Norie,

    That's perfect, many thanks. It seems easy when you know how.

    Many thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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