+ Reply to Thread
Results 1 to 3 of 3

insert number of rows based on textbox value

  1. #1
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    insert number of rows based on textbox value

    Hi, I have a userform with a combobox and textbox. The combobox takes values in column A of Sheet1. What I hope to achieve is when users select a value in the combobox and type in a number in textbox1, the macro will find the corresponding row specified by combobox1 and insert rows based on the number specified in textbox1.

    so for example, users select 10 in combobox1 and type in 3 in textbox1 and execute the macro, 3 rows will be inserted below the row with the number 10.

    attached workbook for reference
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: insert number of rows based on textbox value

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    Re: insert number of rows based on textbox value

    Thank you so much alphaFrog!!

+ 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] How to insert number of rows based on value of a Cell
    By sathyasun in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-24-2013, 12:47 AM
  2. [SOLVED] insert rows based on number in cell and copy the data down into the new rows
    By pziefle in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-05-2013, 11:19 AM
  3. [SOLVED] Insert Multiple Rows Based Off Number in Cell and Copy Data From Above New Rows
    By tstell1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2012, 04:15 PM
  4. Insert New Rows based on Number of Deleted Rows
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2012, 05:14 PM
  5. [SOLVED] Insert a number of rows according to textbox on userform
    By hoimae in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-16-2012, 09:59 AM
  6. Insert a number of rows based on the value in a cell
    By garridosk in forum Word Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2011, 04:41 PM
  7. Insert a number of rows based on a value in a cell on active row
    By iRocco in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-10-2005, 03:46 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