+ Reply to Thread
Results 1 to 12 of 12

How To Automatically Insert Rows In Excel?

  1. #1
    Registered User
    Join Date
    01-09-2021
    Location
    india
    MS-Off Ver
    16
    Posts
    20

    How To Automatically Insert Rows In Excel?

    Example, if i am writing the some character in ("A4") row, it should automatically insert a row in ("A5") and it should keep on continue the same.
    Please help in vba coding

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,777

    Re: How To Automatically Insert Rows In Excel?

    It would be easier to help and test possible solutions if you could attach a copy of your file. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary). See the yellow banner at the top of this page for instructions to attach a file.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    01-09-2021
    Location
    india
    MS-Off Ver
    16
    Posts
    20

    Re: How To Automatically Insert Rows In Excel?

    "If i am typing text in "D5" row under "Deliverables" , it automatically create a new row ie "D6" row should be added under "Deliverables"
    and same for meetings in "D8" and Training "D14"
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    548

    Re: How To Automatically Insert Rows In Excel?

    This was the closest I could get.
    If you select the last cell in each section, then a row is inserted.
    Enter this code in the worksheet section.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-09-2021
    Location
    india
    MS-Off Ver
    16
    Posts
    20

    Re: How To Automatically Insert Rows In Excel?

    If character in the active cell is "true" (e.g "D4") or more than one character then need to insert the row as per below code.
    how to do that?


    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If ActiveCell.Borders(xlEdgeBottom).Color = RGB(68, 114, 196) Then
    ActiveCell.EntireRow.Insert
    End If
    End Sub
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    548

    Re: How To Automatically Insert Rows In Excel?

    You could try:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-09-2021
    Location
    india
    MS-Off Ver
    16
    Posts
    20

    Re: How To Automatically Insert Rows In Excel?

    Thank you , it' working perfectly !!

  8. #8
    Registered User
    Join Date
    01-09-2021
    Location
    india
    MS-Off Ver
    16
    Posts
    20

    Re: How To Automatically Insert Rows In Excel?

    when i am adding value in automatically added row, the value is not updating in the total "AJ" column.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    548

    Re: How To Automatically Insert Rows In Excel?

    Try to incorporate this into the code.

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    01-09-2021
    Location
    india
    MS-Off Ver
    16
    Posts
    20

    Re: How To Automatically Insert Rows In Excel?

    Thanks , it's working but i can't select more than one cell or one row

  11. #11
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    548

    Re: How To Automatically Insert Rows In Excel?

    OK, just take out:
    Cells(Row, Column).Select
    This would have gotten you back to the original cell.
    Try and experiment a bit.

  12. #12
    Registered User
    Join Date
    01-09-2021
    Location
    india
    MS-Off Ver
    16
    Posts
    20

    Re: How To Automatically Insert Rows In Excel?

    Yep, Its's working. Thanks again

+ 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] automatically insert rows in excel 2013
    By docodao in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-21-2016, 10:56 PM
  2. Automatically insert rows
    By haidetaj in forum Excel General
    Replies: 2
    Last Post: 07-15-2014, 12:23 PM
  3. Replies: 16
    Last Post: 07-22-2013, 10:01 PM
  4. Automatically insert rows
    By chrisvacek in forum Excel General
    Replies: 0
    Last Post: 10-11-2012, 06:08 PM
  5. How can I set excel to automatically insert rows
    By Tima in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-13-2006, 12:25 PM
  6. how do you have rows automatically insert in excel?
    By Shelvonne in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-09-2005, 08:40 PM
  7. Replies: 1
    Last Post: 10-10-2005, 07:05 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