+ Reply to Thread
Results 1 to 7 of 7

Macro needed for changing cells to zero.

  1. #1
    Registered User
    Join Date
    01-27-2016
    Location
    Breda, netherlands
    MS-Off Ver
    microsoft offico proffesional 2010
    Posts
    4

    Macro needed for changing cells to zero.

    Hello all,

    I need a macro in a sheet to put all the values in a certain area to zero.
    The Cells contain formulas and they need to stay in there.

    So i basically need a Macro that adds a plus to the formula with the value that is on that moment in that Cell..! And then in a certain area.

    Macro_Minus.xlsm

    If you look in the attachment, then i need a macro that makes all the values 0 in CELLS E9 : CQ1010.

    Can anyone help me with this?
    Thanks in advance!

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro needed for changing cells to zero.

    Hi jorislande,
    maybe so
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-27-2016
    Location
    Breda, netherlands
    MS-Off Ver
    microsoft offico proffesional 2010
    Posts
    4

    Re: Macro needed for changing cells to zero.

    Hi Nilem,

    Yes almost!!
    Only i want to keep all the values that are positive. Only the negative values i want to reset to zero.
    Is that possible aswell?

    Thanks!

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro needed for changing cells to zero.

    try so
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-27-2016
    Location
    Breda, netherlands
    MS-Off Ver
    microsoft offico proffesional 2010
    Posts
    4

    Re: Macro needed for changing cells to zero.

    Yess! Thank you very much!
    It works perfectly.

    One last question, is it also possible that the cells that have been set top zero with the Macro change into red or something like that?

  6. #6
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro needed for changing cells to zero.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-27-2016
    Location
    Breda, netherlands
    MS-Off Ver
    microsoft offico proffesional 2010
    Posts
    4

    Re: Macro needed for changing cells to zero.

    Thanks for your help!

+ 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] Help Needed - Run Macro on multiple cells
    By rwilson91 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-08-2016, 06:46 AM
  2. Replies: 2
    Last Post: 07-07-2014, 11:57 PM
  3. [SOLVED] HELP NEEDED: How to enabled macro with locked cells
    By joeyjee in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-30-2014, 02:19 AM
  4. Macro changing hyperlinks - Urgent help needed please
    By pj_vanherf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2012, 12:42 AM
  5. Macro needed to compare multiple cells
    By spwolfe in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 06-08-2011, 06:09 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