+ Reply to Thread
Results 1 to 4 of 4

Code to continue formula in column when adding rows

  1. #1
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Code to continue formula in column when adding rows

    I am currently using the following code to add new rows to my sheet:
    Please Login or Register  to view this content.
    The code continues the formulas in columns A, B C & F in the newly added rows. I have just recently added formulas in the K column. How can I get it to continue the code in that column also?

    Thanks,
    James

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,052

    Re: Code to continue formula in column when adding rows

    Take a look at using Tables, instead of your code. Tables automatically copy formulas down when you start typing data into a new row
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Code to continue formula in column when adding rows

    The sheet is very complicated and has a lot going on. I tried using tables once and it messed everything up. This has been working great for me, I just need to extend it to work on the K Column also.

  4. #4
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Code to continue formula in column when adding rows

    I just figure out how to get it to copy down the formula in the F column by changing the 6 to 11 on lines 11, 16 and 20 (see bold).

    However it now for some reason is also copying the data in column G to all the new rows it adds. How can I keep column G clear in all the newly added rows?

    Please Login or Register  to view this content.

+ 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. Every Two Rows - Insert Formula -> Continue for as many rows as there is data.
    By athyeh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-10-2014, 04:15 PM
  2. [SOLVED] Code to add rows and continue formulas
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-26-2014, 10:03 PM
  3. Code to add rows and continue formulas needs tweaking
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2014, 09:25 PM
  4. [SOLVED] help on vba code to make list continue column and change date format
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2013, 12:06 PM
  5. The chain of formula doesn't continue at the next rows
    By actonpres in forum Excel General
    Replies: 2
    Last Post: 04-21-2012, 02:54 PM

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