+ Reply to Thread
Results 1 to 3 of 3

Insert User Defined Number of Rows in a Table

  1. #1
    Forum Contributor
    Join Date
    11-15-2008
    Location
    Arizona
    MS-Off Ver
    Excel 2013
    Posts
    179

    Insert User Defined Number of Rows in a Table

    I have vba that inserts number of rows based on user input, but I need to insert table rows not entire rows.

    The underlined part of the code is the old code that inserted rows based on user input. I am taking that out now since it just inserts regular rows not table rows.

    The bold part of the code is the part I need to modify as right now it just inserts one row, and I need it to insert as many table rows as user defines.

    Please Login or Register  to view this content.
    Maybe I need to do a loop or something. I am up for whatever code I need to make this happen. I have searched and searched, but I can't seem to find an answer to what I would assume is a common need when one doesn't know how many rows a user needs in their table.
    Last edited by dsrt16; 03-08-2018 at 11:24 PM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: Insert User Defined Number of Rows in a Table

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    11-15-2008
    Location
    Arizona
    MS-Off Ver
    Excel 2013
    Posts
    179

    Re: Insert User Defined Number of Rows in a Table

    Thanks. That works great. I just changed the (3) to (1) since I needed it to insert rows above the first row in the table. Even though the first row of the table is row 3, I found it adds the rows below unless I used (1), then it added rows above as needed.

+ 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. Insert number of user inputted rows without copying pre-existing data
    By KT99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2014, 02:55 PM
  2. How do I use a button to insert a specified number of rows in a table?
    By georgehjsimms in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-29-2014, 06:37 AM
  3. How to build a dynamic matrix table with user defined no.of rows and no.of columns
    By santhosh51 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-20-2013, 03:58 AM
  4. Macro to insert user defined single row.
    By Global2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-02-2013, 11:41 AM
  5. [SOLVED] Insert User Selected Number of Blank Rows
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2012, 12:33 PM
  6. Insert n number of rows from a user form click event
    By vn900 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2011, 08:37 PM
  7. Replies: 12
    Last Post: 10-03-2008, 09:02 AM

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