Option Explicit
Option Base 1
' Exemple d'utilisation
Sub SampleResizePosTab()
Dim Montants() As Double, montantcoupe
ReDim Preserve Montants(1 To 5)
Montants(1) = 0: Montants(2) = 0
Montants(3) = -100: Montants(4) = 10: Montants(5) = 300
montantcoupe = Application.Index(Montants, Evaluate("COLUMN(" & Columns(3).Resize(, 3).Address(0, 0) & ")"))
MsgBox "a l'origine il y a " & UBound(Montants) & vbCrLf & "maintenant il yen a " & UBound(montantcoupe)
End Sub