Results 1 to 5 of 5

Macro/VBA to keep formula in newly inserted row

Threaded View

Antligen Macro/VBA to keep formula in... 04-11-2014, 05:24 AM
Pete_UK Re: The ultimate... 04-11-2014, 05:31 AM
Antligen Re: The ultimate... 04-11-2014, 06:12 AM
Pete_UK Re: The ultimate... 04-11-2014, 06:32 AM
Antligen Macro/VBA to keep formula in... 04-11-2014, 06:09 AM
  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:

    =IF(COUNT(G10,H10)=2,H10-G10,"")
    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!

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. 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