Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could do something like:
Test sub for processing existing formula, XX outputs current cell being calculated Sub test() Dim rng As Range For Each rng In ActiveSheet.UsedRange If rng.HasArray Then 'process an array formula ElseIf rng.HasFormula Then rng.Formula = rng.Formula & " + XX()" End If Next End Sub Public Function XX() As Long Debug.Print Application.Caller.Address XX = 0 End Function -- Rob van Gelder - http://www.vangelder.co.nz/excel "Alex Lai" wrote in message ... Hi ALL, I am trying to write a procedure that can trap the cell value change event so I can prorammatically determine in what sequence Excel calculates cells in a worksheet: A1, A2, A3....B1, B2, B3.. or A1 B1, C1...A2, B2, C2? Any ideas? thanks Alex |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Alex,
Neither by row or by column: its mostly dependency sequence within last evaluation sequence. The sequence is actually dynamically determined by Excel as a function of the changes since the last recalculation and the calculation method being used. for an explanation of excel's calculation sequence see http://www.Decisionmodels.com/calcsecretsc.htm for useful functions for tracing the calculations sequence download CalcTrace.zip from http://www.decisionModels.com/downloads.htm Charles ______________________ Decision Models The Excel Calculation Site. www.DecisionModels.com "Alex Lai" wrote in message ... Hi ALL, I am trying to write a procedure that can trap the cell value change event so I can prorammatically determine in what sequence Excel calculates cells in a worksheet: A1, A2, A3....B1, B2, B3.. or A1 B1, C1...A2, B2, C2? Any ideas? thanks Alex |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Trap show toolbar event | Links and Linking in Excel | |||
how can I trap the change event (Tab Press key) of these controls | Excel Worksheet Functions | |||
how can I trap the change event (Tab Press key) of these controls | Excel Worksheet Functions | |||
Trap CTRL+C keypress event | Excel Programming | |||
how to trap a event coming from a dll | Excel Programming |