+ Reply to Thread
Results 1 to 4 of 4

insert rows in excel spreadsheet via macro

  1. #1
    Floyd Elkins
    Guest

    insert rows in excel spreadsheet via macro

    I need to be able to insert a number into a column in an Excel Spreadsheet
    and have that number of rows (copied from another row) entered following that
    row.

  2. #2
    Bob Phillips
    Guest

    Re: insert rows in excel spreadsheet via macro

    With VBA

    ActiveCell.Offset(1, 0).Resize(ActiveCell.Value).EntireRow.Insert


    --
    HTH

    Bob Phillips

    "Floyd Elkins" <Floyd [email protected]> wrote in message
    news:[email protected]...
    > I need to be able to insert a number into a column in an Excel Spreadsheet
    > and have that number of rows (copied from another row) entered following

    that
    > row.




  3. #3
    Floyd Elkins
    Guest

    Re: insert rows in excel spreadsheet via macro

    Thanks Bob - I really appreciate the prompt response! I need to be able to
    go to a specific column (heading = Quantity). Based on the number entered, I
    want to enter that number of rows immediately following this entry. I'm not
    sure that a Macro is the right way to do this, and I can't find a command
    that will do it. Any suggestions?

    Thanks again,

    Floyd

    "Bob Phillips" wrote:

    > With VBA
    >
    > ActiveCell.Offset(1, 0).Resize(ActiveCell.Value).EntireRow.Insert
    >
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > "Floyd Elkins" <Floyd [email protected]> wrote in message
    > news:[email protected]...
    > > I need to be able to insert a number into a column in an Excel Spreadsheet
    > > and have that number of rows (copied from another row) entered following

    > that
    > > row.

    >
    >
    >


  4. #4
    Duke Carey
    Guest

    Re: insert rows in excel spreadsheet via macro

    Bob's VBA command does just what you want.

    If you are not comfortable with macros/VBA, get a quick tutorial at David
    McRitchie's website

    http://www.mvps.org/dmcritchie/excel...m#vbatutorials


    "Floyd Elkins" wrote:

    > Thanks Bob - I really appreciate the prompt response! I need to be able to
    > go to a specific column (heading = Quantity). Based on the number entered, I
    > want to enter that number of rows immediately following this entry. I'm not
    > sure that a Macro is the right way to do this, and I can't find a command
    > that will do it. Any suggestions?
    >
    > Thanks again,
    >
    > Floyd
    >
    > "Bob Phillips" wrote:
    >
    > > With VBA
    > >
    > > ActiveCell.Offset(1, 0).Resize(ActiveCell.Value).EntireRow.Insert
    > >
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > "Floyd Elkins" <Floyd [email protected]> wrote in message
    > > news:[email protected]...
    > > > I need to be able to insert a number into a column in an Excel Spreadsheet
    > > > and have that number of rows (copied from another row) entered following

    > > that
    > > > row.

    > >
    > >
    > >


+ 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