I think you need to keep an oldvalue copy of the cell/s you are monitoring. Use a timer function to check every few seconds if oldvalue equals cell currentvalue. If it does not then a change has been made. Do what you require then set oldvalue to currentvalue and set timer going again.
I think you need to keep an oldvalue copy of the cell/s you are monitoring.Use a timer function to check every few seconds if oldvalue equals cell currentvalue. If it does not then a change has been made. Do what you require then set oldvalue to curr
Worksheet calculate will detect a change in formula just amend the following
Private Sub Worksheet_Calculate()
If Range("A1") 100 Then MsgBox "changed"
End Sub
or alternatively use the Private Sub Worksheet_Change(ByVal Target As Range) and log one of the cells that changes to affect the folmula, then just use an if statement to kick off any other routines
Worksheet calculate will detect a change in formula just amend the following Private Sub Worksheet_Calculate()If Range("A1") 100 Then MsgBox "changed"End Subor alternatively use the Private Sub Worksheet_Change(ByVal Target As Range) and log one of
Thanks, I just discovered Private Sub Worksheet_Calculate() but it slows the gruss updates down to a crawl.
I'd be happier to use a user-defined function triggered by an 'if' statement in a cell - but I can only semm to make these work at a module level.
Without me going into why, is there any way to put UDFs at a worksheet level? Sorry - not a 'natural' programmer
Thanks Ghetto JoeThanks, I just discovered Private Sub Worksheet_Calculate() but it slows the gruss updates down to a crawl.I'd be happier to use a user-defined function triggered by an 'if' statement in a cell - but I can only semm to make these wor
You could use conditional formatting with the use of the =now() If (now()is greater than whatever
Looking into it to see if I can figure it out
I know it works with date() so it should work with now() http://en.kioskea.net/forum/affich-202505-conditional-formatting-or-if-using-dates
You could use conditional formatting with the use of the =now()If (now()is greater than whatever Looking into it to see if I can figure it outI know it works with date() so it should work with now()http://en.kioskea.net/forum/affich-202505-conditio
I'm not too sure why Private Sub Worksheet_Calculate() is slowing everything down to a crawl unless you have lots of formulas,conditional cells etc and you can always turn off the calcultions and screen updates if thats whats slowing it down
Application.EnableEvents = True Application.ScreenUpdating = True Application.Calculation = xlCalculationAutomatic End Sub
I'm not too sure why Private Sub Worksheet_Calculate() is slowing everything down to a crawl unless you have lots of formulas,conditional cells etc and you can always turn off the calcultions and screen updates if thats whats slowing it downPrivate
SLowness was due to my having half a million existing formulas on the sheet which I was going to cut out. (Writing from scratch instead) now.)
Think I have it sorted now. tx again/
THanks all of you.SLowness was due to my having half a million existing formulas on the sheet which I was going to cut out. (Writing from scratch instead) now.)Think I have it sorted now. tx again/