Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
i´d like to know if there´s a way to, programatically or via a formula, check if the content of a cell changed, without using an auxiliar cell to compare. Tks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
We need more info. The fact that the cell has something in it means that at
some point it changed (since all cells in a workbook are blank to start with). Is this a file you send to someone else? Is it a shared workbook? At what point do you want to "freeze" the contents of the cells? Do you need to store the prior values? -- HTH... Jim Thomlinson "bbussoloti" wrote: Hi, i´d like to know if there´s a way to, programatically or via a formula, check if the content of a cell changed, without using an auxiliar cell to compare. Tks. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I do execute a routine that brings some values from other workbook to mine.
Those values will be available to be changed, but not necessarily they will be. I just want to make that check, so I can mark with an "U" of update. If there´s no changes, i´ll mark with "". "Jim Thomlinson" escreveu: We need more info. The fact that the cell has something in it means that at some point it changed (since all cells in a workbook are blank to start with). Is this a file you send to someone else? Is it a shared workbook? At what point do you want to "freeze" the contents of the cells? Do you need to store the prior values? -- HTH... Jim Thomlinson "bbussoloti" wrote: Hi, i´d like to know if there´s a way to, programatically or via a formula, check if the content of a cell changed, without using an auxiliar cell to compare. Tks. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Since I don't know where your values are that you want to capture in terms of
changing this works on the entire sheet. Right click the sheet tab and select view code... Paste the following in the code window. Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ErrorHandler Application.EnableEvents = False Target.Offset(0, 1).Value = "U" ErrorHandler: Application.EnableEvents = True End Sub -- HTH... Jim Thomlinson "bbussoloti" wrote: I do execute a routine that brings some values from other workbook to mine. Those values will be available to be changed, but not necessarily they will be. I just want to make that check, so I can mark with an "U" of update. If there´s no changes, i´ll mark with "". "Jim Thomlinson" escreveu: We need more info. The fact that the cell has something in it means that at some point it changed (since all cells in a workbook are blank to start with). Is this a file you send to someone else? Is it a shared workbook? At what point do you want to "freeze" the contents of the cells? Do you need to store the prior values? -- HTH... Jim Thomlinson "bbussoloti" wrote: Hi, i´d like to know if there´s a way to, programatically or via a formula, check if the content of a cell changed, without using an auxiliar cell to compare. Tks. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ok... the event handler is a good idea. I´ll work on it.
"Jim Thomlinson" escreveu: Since I don't know where your values are that you want to capture in terms of changing this works on the entire sheet. Right click the sheet tab and select view code... Paste the following in the code window. Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ErrorHandler Application.EnableEvents = False Target.Offset(0, 1).Value = "U" ErrorHandler: Application.EnableEvents = True End Sub -- HTH... Jim Thomlinson "bbussoloti" wrote: I do execute a routine that brings some values from other workbook to mine. Those values will be available to be changed, but not necessarily they will be. I just want to make that check, so I can mark with an "U" of update. If there´s no changes, i´ll mark with "". "Jim Thomlinson" escreveu: We need more info. The fact that the cell has something in it means that at some point it changed (since all cells in a workbook are blank to start with). Is this a file you send to someone else? Is it a shared workbook? At what point do you want to "freeze" the contents of the cells? Do you need to store the prior values? -- HTH... Jim Thomlinson "bbussoloti" wrote: Hi, i´d like to know if there´s a way to, programatically or via a formula, check if the content of a cell changed, without using an auxiliar cell to compare. Tks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
run macro automatically when cell content is changed? | Excel Worksheet Functions | |||
Can Comment in a cell be changed as the content in another cell ?? | Excel Discussion (Misc queries) | |||
replace one tag in content of one cell and format not changed | Excel Programming | |||
replace one tag in content of one cell and format not changed | Excel Discussion (Misc queries) | |||
How To: Check if a cell value has changed | Excel Programming |