Hello Herve,
This macro allows you to select the cell you want. You can also dran
and fill your range with this formula. When the value in A1 changes, s
do all the dependent cells. Copy this macro into a VBA project module
To use it see the example.
EXAMPLE
A1 = 10
A2 = Increment(A1)
A3 = Increment(A2)
A4 = Increment(A3)
RESULTS
A1 = 10
A2 = 11
A3 = 12
A4 = 13
Macor Code
Code
-------------------
Function Increment(Cell As Excel.Range) As Long
Application.Volatile
Dim X
On Error Resume Next
X = Cell.Value + 1
Increment = X
End Function
-------------------
Sincerely,
Leith Ros
--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile:
http://www.excelforum.com/member.php...fo&userid=1846
View this thread:
http://www.excelforum.com/showthread.php?threadid=48203