+ Reply to Thread
Results 1 to 9 of 9

Add Row above...Not Below

  1. #1
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Add Row above...Not Below

    I am trying to revise some code. Currently it takes the cell value and concatenates some words with the cell value and inserts a row with the new cell value below. Now I am trying to do the reverse....insert a row with the cell value above it. Would anyone be willing to help revise this code? Thanks!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Add Row above...Not Below

    Try
    Please Login or Register  to view this content.
    - Battle without fear gives no glory - Just try

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: Add Row above...Not Below

    Please Login or Register  to view this content.
    Hope that helps

    Ochimus

  4. #4
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Add Row above...Not Below

    Thanks, but not quite....

    Here's an example:
    A1 = Hot Dog
    A2 = Pizza
    A3 = Apples

    I want:
    A1 = Just Stuff Hot Dog Other Stuff
    A2 = Hot Dog
    A3 = Just Stuff Pizza Other Stuff
    A4 = Pizza
    A5 = Just Stuff Apples Other Stuff
    A6 = Apples

    So starting from the last row with a cell value, I want to insert a new row above it containing the current cell value and adding "Just Stuff" & "Other Stuff" to the cell value.

    Thanks very much for your time and help.

  5. #5
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Add Row above...Not Below

    If data is starting at row 1

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Add Row above...Not Below

    Another shot
    Adjust FR to your need
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Add Row above...Not Below

    It didn't work, but I changed the order of the lines


    Please Login or Register  to view this content.
    This way it adds a blank row, but the data is overwriting the original row. I would like the new label to be in the newly created row...

    Thanks

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Add Row above...Not Below

    Maybe:

    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: Add Row above...Not Below

    Just add the ref to the row you moved to the code I gave you earlier, as shown below?

    Please Login or Register  to view this content.
    Ochimus

+ 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