Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a range of cell values, containing numbers from differet projects.
My problem is, if one of the numbers is changes I would like to catch the previus number before the new number change the value in the cells. That is if a cell contain the value 160 and the new value in the cell will be 245 I would like to catch the number 160 with som kind of funktion. /Morten |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
just save it to a variable
prevValue = range("A1").value you're not very specific as to waht you want to do with it and where it is? -- Gary "Moskms" wrote in message ... I have a range of cell values, containing numbers from differet projects. My problem is, if one of the numbers is changes I would like to catch the previus number before the new number change the value in the cells. That is if a cell contain the value 160 and the new value in the cell will be 245 I would like to catch the number 160 with som kind of funktion. /Morten |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Suppose some calculation just changed the value of A1:
NewVal = Range("A1").Value 'capture the new value Application.UnDo 'revert to old value OldVal = Range("A1").Value 'capture old value Range("A1").Value = NewVal 'put new value back Gives you an idea how to get the previous value back long enough to capture it. Mike F "Gary Keramidas" <GKeramidasATmsn.com wrote in message ... just save it to a variable prevValue = range("A1").value you're not very specific as to waht you want to do with it and where it is? -- Gary "Moskms" wrote in message ... I have a range of cell values, containing numbers from differet projects. My problem is, if one of the numbers is changes I would like to catch the previus number before the new number change the value in the cells. That is if a cell contain the value 160 and the new value in the cell will be 245 I would like to catch the number 160 with som kind of funktion. /Morten |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options | Excel Discussion (Misc queries) | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing | Excel Discussion (Misc queries) | |||
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 | Excel Worksheet Functions | |||
back to previus workbook | Excel Discussion (Misc queries) | |||
How to create/run "cell A equals Cell B put Cell C info in Cell D | Excel Discussion (Misc queries) |