+ Reply to Thread
Results 1 to 5 of 5

Macro/VBA to keep formula in newly inserted row

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    london, England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Exclamation Macro/VBA to keep formula in newly inserted row

    Ok, here goes:

    Here attached is my sample workbook:

    Attachment 310920

    My button inserts a new row into the table.

    What I want is that everytime a new blank row is created, the formula in the Days in Situ column is there as well (but obviously the cells update depending with which ever row it's in.. eg below formula is row 10.).

    This is the formula:

    Please Login or Register  to view this content.
    I've tried recording a macro that inserts a new row, copies and then pastes the formula, then types in the cells that it applies to. BUT, after a couple of clicks on the button the formulas dissappear. That option doesn't work.

    Perhaps it needs some kind of VBA code to ensure that the formula is there in column I....

    Can this be done? Major impressed if someone manages to perminently fix this problem!
    Last edited by Fotis1991; 04-11-2014 at 06:11 AM. Reason: Yyes, but you have to change your title in your first post. For this time i did it!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: The ultimate Macro/Formula Question!

    I can't download your attachment.

    If you set the data up in an Excel Table (put the cursor in the table then click Insert | Table), then Excel will automatically copy formulae into newly-inserted rows and if you add data to the bottom of the table.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-20-2014
    Location
    london, England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Macro/VBA to keep formula in newly inserted row

    Is this better??

  4. #4
    Registered User
    Join Date
    01-20-2014
    Location
    london, England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: The ultimate Macro/Formula Question!

    @Pete_UK

    I'm using excel 2010. I will try attaching another to see if it's more compatible.

    Try this:TasterofwhatIwant(1).xls

    Are you able to open it now?

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: The ultimate Macro/Formula Question!

    Yes, I opened it. Just do what I said before.

    Pete

+ 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. Ultimate Add-in update
    By goofy78270 in forum Excel General
    Replies: 0
    Last Post: 07-03-2012, 03:07 PM
  2. Ultimate add on
    By slipit1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-12-2011, 01:36 AM
  3. where can I get ultimate plugin
    By evlajish in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2008, 06:10 AM
  4. [SOLVED] The Ultimate Problem
    By Gordon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2006, 05:30 PM
  5. [SOLVED] Ultimate protection
    By shnim1 in forum Excel General
    Replies: 1
    Last Post: 10-17-2005, 10:05 PM

Tags for this Thread

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