+ Reply to Thread
Results 1 to 5 of 5

Insert new rows with copying formulas but having empty cells

  1. #1
    Registered User
    Join Date
    01-12-2010
    Location
    south bend, in
    MS-Off Ver
    Excel 2000
    Posts
    31

    Insert new rows with copying formulas but having empty cells

    I found a code that inserts and copys the formulas but also copies the cell values as well based on an active cell. I'm looking to modify the code so that it will only insert the row with the formulas but leave the new rows clear of data. I'd also like everytime I select the word "Cmpl" from column G to put a strikethrough on all data in that row.Book2.xls

    thanks for the help!

  2. #2
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Insert new rows with copying formulas but having empty cells

    Hi,

    First part maybe this way ?
    Please Login or Register  to view this content.
    second part (strikethrough)
    Please Login or Register  to view this content.
    Last edited by MaczaQ; 08-28-2012 at 02:34 PM. Reason: additional code
    Best Regards
    MaczaQ
    ---------------------------------------------------------------------------------------------------------------------------
    If you are satisfied with the solution(s) provided, please mark your thread as Solved
    If you are pleased with my answer consider to rate it. To thank someone who has helped you, click on the star icon below their name.
    - This way you will add him some reputation points ... thanks in advance.

  3. #3
    Registered User
    Join Date
    01-12-2010
    Location
    south bend, in
    MS-Off Ver
    Excel 2000
    Posts
    31

    Re: Insert new rows with copying formulas but having empty cells

    it works perfectly, the only thing i forgot to mention is when a new row is inserted the cell borders don't get applied and the color stays the same as the previous row. Can the cell borders stay and the row color go back to white? thanks so much for your help!

  4. #4
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Insert new rows with copying formulas but having empty cells

    try this updated of insertRow code section
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-12-2010
    Location
    south bend, in
    MS-Off Ver
    Excel 2000
    Posts
    31

    Re: Insert new rows with copying formulas but having empty cells

    sorry for being a pain.... if i add a new row it copies the formulas down but it doesn't update. what i mean is the highlighted cell in column a has the number 2 in it, it will add a new row with the number 3 in it but if i keep the cell highlighted and add another row it puts the number 3 again instead of keeping column "a" in sequential order like 1,2,3,4,5 ect...

    thanks again for all your help!

+ 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