+ Reply to Thread
Results 1 to 9 of 9

Help!!Need Macro which don't allow any value to disappear.

  1. #1
    Registered User
    Join Date
    10-02-2017
    Location
    noida
    MS-Off Ver
    2016
    Posts
    102

    Post Help!!Need Macro which don't allow any value to disappear.

    Dear All Experts ,

    I Need your help to fix this real issue with my workbook. I am really worried how it can be fixed, I have a Workbook with 2 sheets named as "Data" and "Records" , sheet1 "Data" which has all the information and sheet 2 "Records" where formula's update the calculations from "Data" sheet when the status changes to Deposit ,Cash, Done, for particular month/ year , so far everything was working perfectly by using formula for calculations for making yearly reports.

    but the things not permanent in "Record" sheet as soon as I make changes on my "data" sheet again ,things are also changing in "Records" sheet which I really don't want. it should only add up thing without subtracting anything.

    Once Any values coming in "Records" sheet it should be permanent and should not go away even after making any changes like again status changed on "data" sheet till the time things not deleted manually in "Records" sheet

    Need any macro which can make this thing possible ....

    I have attached a sample workbook .....please Help..

    Thank you..

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Help!!Need Macro which don't allow any value to disappear.

    Sheet RECORDS Column K has formulas.

    Code for macro
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    10-02-2017
    Location
    noida
    MS-Off Ver
    2016
    Posts
    102

    Re: Help!!Need Macro which don't allow any value to disappear.

    Quote Originally Posted by kvsrinivasamurthy View Post
    Sheet RECORDS Column K has formulas.

    Code for macro
    Thank you soo much kvsrinivasamurthy for you time and effort ,I really Appreciate your Help.

    We are in right track so far things are working and recorded as I want the only missing thing are:

    1) It should also allow addition over a recorded value over and over without reverting anything on status changed.

    let suppose for Category Remote column = we have 5 amounts scheduled for the same month , once there status changes to "cash", "deposit", "done" one by one for same month then the recorded value should add up with a new amount over a old amount (Sum of old recorded amount + new amount) over a recorded value when its status changes.

    2) Do I have to run macro from view code over and over, Can?? sub macro be called on workbook open module? it is not recording by itself when the status changes .

    3) While running the macro for view code its like a refresh to recording sheet and placing new data over it ...I want those value to be added over old values.

    Thank you soo much

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Help!!Need Macro which don't allow any value to disappear.

    Try with this

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-02-2017
    Location
    noida
    MS-Off Ver
    2016
    Posts
    102

    Re: Help!!Need Macro which don't allow any value to disappear.

    Quote Originally Posted by LeoTaxi View Post
    Try with this
    Thank you soo much LeoTaxi...The code given by you is working Perfect as I wanted Thank you soo much for your help..

    one more thing in my original Worksheet I have other code too and a Userform to open the worksheet too.

    Private Sub Worksheet_Change(ByVal Target As Range) =====I already have this name existed name in my worksheet with other code ...if I want to copy your code in my original worksheet ,then what will be the process to add Two
    Private Sub Worksheet_Change(ByVal Target As Range)????

  6. #6
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Help!!Need Macro which don't allow any value to disappear.

    i can say it, after i have seen this code


    Kind regards
    Leo

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Help!!Need Macro which don't allow any value to disappear.

    Remove these lines from macro. Then New value will be added to the existing value in the cell.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Help!!Need Macro which don't allow any value to disappear.

    In this a form appears when there is no date


    Kind regards
    Leo
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-02-2017
    Location
    noida
    MS-Off Ver
    2016
    Posts
    102

    Re: Help!!Need Macro which don't allow any value to disappear.

    Thank you Soo Much Leo , it work amazing ...

+ 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] Need automatic macro that makes 4 sheets disappear if a sheet outside of those 4 is select
    By caliskier in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-18-2016, 02:26 PM
  2. Macro: Check-boxes to disappear
    By snakeCZ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2014, 08:25 AM
  3. [SOLVED] Need Help in Macro: Appear a Picture for few seconds and Disappear
    By vij8y in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2012, 02:20 PM
  4. [SOLVED] range names disappear when running a macro
    By dvb_24 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-11-2011, 05:03 AM
  5. Macro to form Buttons or Appear/Disappear
    By game in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2007, 02:37 PM
  6. Macro Disappear
    By dayaptl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-23-2007, 08:46 AM
  7. Worksheet Buttons disappear after Macro runs!
    By Baritone in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2005, 11:06 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