+ Reply to Thread
Results 1 to 4 of 4

Input Box - Insert Rows

  1. #1
    Registered User
    Join Date
    11-24-2015
    Location
    Cleveland, Ohio
    MS-Off Ver
    2016
    Posts
    28

    Input Box - Insert Rows

    Hello,

    I am trying to learn how to use input boxes so I have the code below, just something simple to insert a large number of rows.

    How can I set up an input box where it asks the user which range they would like to insert rows? Thank you !

    Sub InsertRows()
    '
    ' InsertRows Macro
    Range("A1:A25").Select
    Selection.EntireRow.Insert , CopyOrigin:=xlFormatFromLeftOrAbove
    End Sub

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Input Box - Insert Rows

    Please Login or Register  to view this content.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

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

    Re: Input Box - Insert Rows

    Quote Originally Posted by DKsmash2014 View Post
    I am trying to learn how to use input boxes ...How can I set up an input box where it asks the user which range
    TIP: There are all sorts of code snippets you can find by doing a search for something like Excel VBA prompt for range. You'll often find very good step-by-step guides with explanations.
    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.

  4. #4
    Registered User
    Join Date
    11-24-2015
    Location
    Cleveland, Ohio
    MS-Off Ver
    2016
    Posts
    28

    Re: Input Box - Insert Rows

    Thank you!

+ 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. Macro to Copy/Insert Copied cells based on user input # of rows/formatting rules
    By gaker10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2015, 11:42 AM
  2. [SOLVED] Copy and insert rows based on user input
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-27-2015, 10:34 AM
  3. Insert Rows Based on Input Cell
    By mbergamo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-17-2014, 11:40 AM
  4. Insert # of Rows based on User Input
    By afpilotb1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2014, 11:40 AM
  5. Using Input Box to Copy and Insert Rows
    By diggity90 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2013, 06:36 AM
  6. [SOLVED] Macro based on User input to Insert X amount of rows - Need advanced help
    By BuzzOffSweetheart in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-19-2012, 07:06 PM
  7. Insert rows based on user input from cell value in other sheet
    By MrPisky in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-31-2011, 09:08 PM

Tags for this Thread

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