+ Reply to Thread
Results 1 to 2 of 2

VBA or formula for adding row with formulas in it

  1. #1
    Registered User
    Join Date
    07-11-2018
    Location
    Maine
    MS-Off Ver
    2016
    Posts
    1

    Question VBA or formula for adding row with formulas in it

    I need to automatically add a new row every time a table is filled, and that new row needs to have formulas in it's cell. I can't figure out how to do this.
    Here is the link to a copy of the file, I would need it on the Bottom of sheet 2 (which references the sheet "Form" in the formula i want to copy)

    hermonnet-my.sharepoint.com/:x:/g/personal/lana417_hermon_net/ESGDFWEtKxBKkWj2AtncpEsBJaOSBAzKjW_59JqYUm3KeA?e=X5Aowx

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,298

    Re: VBA or formula for adding row with formulas in it

    I did not open your workbook.

    Option 1)

    Use a formula like

    =IF(Form!$A2<>"",Form!A2,"")

    and copy across to create your table, changing the formula as needed. Then copy down to make many more rows that you need, and as your Form sheet is filled, the data will be carried over.

    Option 2)

    Change event macro:


    1) Copy this code.
    2) Right-Click the sheet tab of "Form"
    3) Select "View Code"
    4) Paste the code into the window that appears.
    5) Save the file as a macro-enabled .xlsm file.
    6) Make changes as needed - this assumes that the sheets have the same number of rows

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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. Replies: 13
    Last Post: 07-16-2016, 10:53 PM
  2. [SOLVED] Adding two IF formulas
    By Khaldon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2015, 08:17 AM
  3. [SOLVED] adding formulas from base formula sheet
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2015, 02:54 PM
  4. Adding in two IF formulas
    By eclair in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-22-2013, 09:48 AM
  5. [SOLVED] adding formulas together
    By zappyzoo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-03-2013, 03:16 PM
  6. Excel 2007 : help w/ some adv. adding and % formulas
    By o811marine in forum Excel General
    Replies: 10
    Last Post: 05-08-2012, 04:58 PM
  7. Adding $ to many formulas
    By NRZ in forum Excel General
    Replies: 2
    Last Post: 08-17-2010, 06:38 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