+ Reply to Thread
Results 1 to 6 of 6

Automatic adding of rows based on different sheet

  1. #1
    Registered User
    Join Date
    10-07-2014
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    27

    Automatic adding of rows based on different sheet

    Hi,

    I am trying to make some sort of automation that does this:

    Sheet 1

    Column with text Calculation 1 Calculation 2
    Row 1 (has information according to a row in sheet 2 BUT, when I add another row in sheet 2 it automatically adds another row to this first table in sheet 1 copying all the formulas of this Row 1 to Row 2 below) formula formula
    Row 2 (automatically added if Row 2 exists in sheet 2) formula (copied from Row 1) formula (copied from Row 1)
    Row 3 (automatically added if Row 3 exists in sheet 2) formula (copied from Row 1) formula (copied from Row 1)

    Sheet 2

    Row 1 information
    Row 2 information
    Row 3 information

    Main idea is that, a person should work only in sheet 2 in order for his table in sheet 1 to be made, without having to manually copy/drag all the formulas for all the columns that table in sheet 1 might have, therefore improving speed and reducing error. Other sugestions are welcomed as-well.

    Thanks !

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

    Re: Automatic adding of rows based on different sheet

    Right-click the sheet tab of Sheet2, select View Code, and paste this code into the window that appears. Then save the file as a macro-enabled .xlsm

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

  3. #3
    Registered User
    Join Date
    10-07-2014
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    27

    Re: Automatic adding of rows based on different sheet

    Do I need to modify something in the code because for me is not working. (tried also with new workbook)

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,946

    Re: Automatic adding of rows based on different sheet

    It may be that you have a large usedrange already. So let's try using just column A:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-07-2014
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    27

    Re: Automatic adding of rows based on different sheet

    It might be because I'm a total noob when it come to macros. The thing I did was to open excel (run, excel), view code on "Sheet 2", paste your code, save (in visual basic application, small discket button), and then select Excel Macro-Enabled Workbook as extension. Then I try to write something in sheet 2/column A and nothing happens in sheet 1. I have Excel Home and Business 2010.

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

    Re: Automatic adding of rows based on different sheet

    The code is written to go onto sheet2 not sheet1 - that was how I interpreted your description If that is different change all the sheet1 to sheet2 and vice versa

+ 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. [SOLVED] Automatic insert rows based on value in a cell
    By cyberpanser in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-02-2015, 09:46 PM
  2. New guy here (automatic moving of rows to another sheet)
    By adammint7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2013, 12:17 PM
  3. [SOLVED] Automatic Sheet Adding
    By shyam sundar in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 02-26-2013, 04:07 PM
  4. Automatic Sheet Adding through macro
    By shyam sundar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2013, 02:20 PM
  5. Automatic adding and subtraction entire rows
    By endlyss in forum Excel General
    Replies: 15
    Last Post: 01-23-2009, 09:21 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