+ Reply to Thread
Results 1 to 2 of 2

Add new cell to existing formula

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    1

    Add new cell to existing formula

    Hey all....looking for a little direction as to how I would write a code for this situation:

    I have a macro that adds 10 lines into a worksheet above a certain line. Every tenth line I needed added to an existing formula.

    For example:
    * Cell E26 = E6 + E16.
    * When i execute the code it inserts 10 new lines above E26 and the new formula in Cell E36 should be = E6 + E16 + E26
    * i want this code to modify every time I run the insert rows macro.

    I am just starting to get more involved with VBA now so my knowledge is pretty minimal...so if you could walk me through this I would greatly appreciate it. Thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Mexico
    Posts
    200

    Re: Add new cell to existing formula

    Look here, formula and code:
    http://www.ozgrid.com/Excel/sum-every-2nd-nth-cell.htm
    http://www.ozgrid.com/VBA/sum-every-nth.htm

+ 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