Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-09-2015, 01:38 PM
DonJohns1 DonJohns1 is offline Code that will run when a cells value is changed. Windows 7 32bit Code that will run when a cells value is changed. Office 2010 32bit
Novice
Code that will run when a cells value is changed.
 
Join Date: Apr 2015
Posts: 2
DonJohns1 is on a distinguished road
Default Code that will run when a cells value is changed.

Hi. I've been looking for an answer and can't find what I'm looking for. I'm really new to this and could use any help I can get. Thank you in advance.



I have a spread sheet with columns

A= Current
B= Change Amount
C= New Amount
I= Percent Change


What I need is a code that If I were to change the value in "Change Amount" That it calculates a value in the corresponding "Percent Change"(from a formula).

But there will be times that the "percent change" value will change instead, therefore needing to update corresponding "Change amount" (also from a formula)

There is roughly 100 rows in the spreadsheet. It will always be a random cell in the range that changes, and sometimes more that one will be.

Is there an easy way to do this?
Thank you again for any help!
Don
Reply With Quote
  #2  
Old 04-12-2015, 02:50 AM
gmayor's Avatar
gmayor gmayor is offline Code that will run when a cells value is changed. Windows 7 64bit Code that will run when a cells value is changed. Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

I am not sure why you would need a macro for this. On the face of it, only simple calculations are required.

What are the relationships between A, B & C?
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 04-15-2015, 10:48 AM
DonJohns1 DonJohns1 is offline Code that will run when a cells value is changed. Windows 7 32bit Code that will run when a cells value is changed. Office 2010 32bit
Novice
Code that will run when a cells value is changed.
 
Join Date: Apr 2015
Posts: 2
DonJohns1 is on a distinguished road
Default

Thank you for the reply. I apologize it took so long for me to get back to you.

I was thinking the same thing...I'm not real sure how to do go about that either.
A(current) is the only cell that doesn't change.
B(If B is changed, cells "C and I" need to calculate.
If they change C the cell B and need to calculate.
If cell I is changed then cell B and C need to calculate.

It doesn't look like I mentioned it above, but these cells are already populated, and there won't be any set way they enter data, so it just needs to be fool proof where it can't be broken. (They need a way to revert the numbers if they don't like the ending figures as well.- Essentially what they will be doing is playing with numbers. )

I think where I'm really struggling is if they change a cell that has a formula in it, and decide they don't like it, so they play with the other cells, then they have wiped out the formulas.

Thank you again. I do appreciate the help!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Highlight cells with changed data on a worksheet with tracking changes jpb103 Excel Programming 1 06-03-2014 07:33 AM
Need to delete 'field code changed' in my reference list leb Word 4 05-04-2013 12:25 AM
Code that will run when a cells value is changed. Cells no longer wrap text when changed in nested table erik2000 Word Tables 1 03-29-2013 03:27 PM
Code that will run when a cells value is changed. Unlocking cells with VB code in excel 2003 tadleymansions Excel 1 01-18-2013 06:55 AM
VBA Code to auto resize cells when text entered OTPM Excel Programming 0 09-18-2011 04:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft