+ Reply to Thread
Results 1 to 4 of 4

Moving cells down when row above is automatically populated.

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    Newton Abbot
    MS-Off Ver
    Excel 2007
    Posts
    4

    Moving cells down when row above is automatically populated.

    Me again.......

    Been trying to solve this myself but for the life of me cant get it to work right.

    I have a workbook that contains 5 sheets. Sheets 2-4 contain data that when a time is added to a cell, it copies that row into sheet 1.

    On sheet 1 the list will be generated based on the entries into sheets 1-4.

    On sheet one I have a totals cell which calculates the total hours. At the moment when the rows automaticall insert from sheet 2-4 the cell with the total does not move and eventually gets copied over.

    How can i set this up so as new rows are inserted into sheet 1, the totals cells always moves down one,

    I have attached the workbook as it currently stands. Design Time Calc.xlsm

    Thanks for your help once again

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Moving cells down when row above is automatically populated.

    Hi (Again )
    I have modified the code to include a running grand total on your Totals Worksheet.
    Hope this helps.
    Tony
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    Newton Abbot
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Moving cells down when row above is automatically populated.

    Thanks again Tony

    Just a quick question so I can understand in my own head how it all works.

    In the Movetotalrowdown code there is this line

    Application.Goto Reference:="GRANDTOTAL"

    II presume this references the row with the grand total calculation on. How does this do that. ie how have you linked "GRANDTOTAL" to that row


    Chris

  4. #4
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Moving cells down when row above is automatically populated.

    Hi Chris
    I have created a Named Range called "GRANDTOTAL" so that when the total row is moved the code can still locate it.
    Tony

+ 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: 2
    Last Post: 12-13-2011, 10:42 PM
  2. Moving completed cells to top and incomplete to bottom automatically
    By goose1000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2011, 05:38 PM
  3. automatically moving data between cells/sheets in excel
    By angelabu in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-28-2011, 04:44 AM
  4. Automatically moving/copying cells
    By catalfamo1220 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2006, 02:01 PM
  5. Having data automatically populated in a different sheet
    By Nicki in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-13-2006, 08:30 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