PC Review


Reply
Thread Tools Rate Thread

Check if cell content changed

 
 
bbussoloti
Guest
Posts: n/a
 
      6th Dec 2007
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 With Quote
 
 
 
 
Jim Thomlinson
Guest
Posts: n/a
 
      6th Dec 2007
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 With Quote
 
bbussoloti
Guest
Posts: n/a
 
      6th Dec 2007
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 With Quote
 
Jim Thomlinson
Guest
Posts: n/a
 
      6th Dec 2007
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 With Quote
 
bbussoloti
Guest
Posts: n/a
 
      7th Dec 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
run macro automatically when cell content is changed? =?Utf-8?B?S2F0aHJpbmU=?= Microsoft Excel Worksheet Functions 1 22nd Mar 2007 10:44 PM
Can Comment in a cell be changed as the content in another cell ?? =?Utf-8?B?QW1pdCBLdW1hciBCYWlkeWFrYQ==?= Microsoft Excel Misc 3 10th Jan 2007 03:35 AM
replace one tag in content of one cell and format not changed =?Utf-8?B?cmVwbGFjZSBvbmUgdGFnIGluIGNvbnRlbnQgb2Yg Microsoft Excel Programming 1 9th Jan 2006 04:02 PM
replace one tag in content of one cell and format not changed =?Utf-8?B?cmVwbGFjZSBvbmUgdGFnIGluIGNvbnRlbnQgb2Yg Microsoft Excel Misc 1 9th Jan 2006 03:36 PM
How To: Check if a cell value has changed Kevin McCartney Microsoft Excel Programming 2 27th Nov 2003 12:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:27 AM.