+ Reply to Thread
Results 1 to 3 of 3

Inserting Rows into a worksheet

Hybrid View

  1. #1
    Floyd Elkins
    Guest

    Inserting Rows into a worksheet

    I need to be able to enter a given number into a column in Excel and have
    that number of rows added in the next row (copied from another row).

  2. #2
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481
    Does this do what you are after?

    Sub insertrows()
        Dim CurrRow As Integer
    CurrRow = ActiveCell.Row
    Rows(CurrRow + 1 & ":" & CurrRow + ActiveCell.Value).Insert
    End Sub
    I'm not sure what you mean by "copied from another row". Perhaps further explination will clarify exactly what you are after.

    HTH

  3. #3
    Dave Peterson
    Guest

    Re: Inserting Rows into a worksheet

    David McRitchie has a nice macro that asks how many rows should be inserted and
    even copies the formulas down to those new rows.

    http://www.mvps.org/dmcritchie/excel/insrtrow.htm
    look for: InsertRowsAndFillFormulas

    Floyd Elkins wrote:
    >
    > I need to be able to enter a given number into a column in Excel and have
    > that number of rows added in the next row (copied from another row).


    --

    Dave Peterson

+ 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