+ 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
    122

    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,341

    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
    122

    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)

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