Sub ProcessCall(ByVal TopLoc)
Dim Work As New Process
Set cellule = cells("b1)
Work.TopLoc = TopLoc
Randomize
Work.Id = Int(Rnd * 100000)
cellule.Resize(bcl).ClearContents
Call SousProcess(cellule, Work)
End Sub
Sub SousProcess(Base, Work)
Som = 0
For A = 1 To bcl
Som = Som + Base.Offset(0, -1).Value
For b = 1 To 8000
Base.Value = Som
Next
Set Base = Base.Offset(1, 0)
Debug.Print ("Id:" & Work.Id & " itération:" & A)
DoEvents
If Work.TopLoc <> Top Then
Err.Raise 5015, , "Interuption de la procédure"
End If
Next
End Sub
module de classe Process:
Public TopLoc
Public Id