+ Reply to Thread
Results 1 to 5 of 5

Macro that’s autosums multiple cells and when totals zero inserts new line.

  1. #1
    Registered User
    Join Date
    06-26-2018
    Location
    London
    MS-Off Ver
    2010
    Posts
    3

    Macro that’s autosums multiple cells and when totals zero inserts new line.

    Hi there

    Need some urgent assistance if possible..

    I have a spread that has multiple positive and negative numbers, i need to establish a macro that works down a column adding the two data types together and once total nets zero (ie the balance is zero )it inserts a new line and proceeds on to the next cell.

    Column E

    Ie. -10,000
    10,000
    -20,000
    5,000
    5,000
    10,000
    -40,000
    40,000

    Trying to establish as per below
    Ie. -10,000
    10,000

    -20,000
    5,000
    5,000
    10,000

    -40,000
    40,000

    I hope this makes sense, and any help would be gratefully appreciated.

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Macro that’s autosums multiple cells and when totals zero inserts new line.

    Hi Rmcholt

    Welcome to the Forum...Try this...Assuming Col A
    Please Login or Register  to view this content.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    06-26-2018
    Location
    London
    MS-Off Ver
    2010
    Posts
    3

    Re: Macro that’s autosums multiple cells and when totals zero inserts new line.

    Sintek

    you my friend, are blessed in this generation.

    I am so thankful and grateful for this...thank you

  4. #4
    Registered User
    Join Date
    06-26-2018
    Location
    London
    MS-Off Ver
    2010
    Posts
    3

    Re: Macro that’s autosums multiple cells and when totals zero inserts new line.

    Sintek

    are you also able to advise how i can set certain keys on my keyboard to colors ? ie when scrolling down any negative numbers to red and any positive to blue via the f keys ?

  5. #5
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Macro that’s autosums multiple cells and when totals zero inserts new line.

    Not quite sure but why not have the cells colours change automatically as the values are entered...
    This in the specific Sheets module...
    Please Login or Register  to view this content.

+ 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] Macro to convert multiple-line cells to indivual rows.
    By theairhockeyguy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-20-2014, 06:18 AM
  2. Replies: 9
    Last Post: 01-13-2014, 01:49 PM
  3. Macro that inserts updated data on new line
    By tiwele in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2013, 12:02 PM
  4. Macro to keep running totals across mutiple cells and multiple rows
    By Gixxy in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-28-2012, 05:37 PM
  5. Not able to format text and autosums,
    By stuartnoob in forum Excel General
    Replies: 6
    Last Post: 10-28-2010, 04:12 PM
  6. Macro based Import Data Inserts Cells, I want Replace
    By bramweisman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-09-2005, 01:05 AM
  7. Inserts a new line with a macro
    By Vicki in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-07-2005, 12:54 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