j'aimerai avoir une formule (ou un code VBA) qui puisse trouver, copier et coller la dernière cellule de la colonne F (backlog), après filtrage (choix des dates ; colonne A) ; limite du filtre : f8 à f274.
Sinon le code en attendant de savoir ou coller le résultat:
Sub Valeur_Derlig()
dim Lig as long, NbLig as long
Application.ScreenUpdating = False
NbLig = Range("A" & Rows.Count).End(xlUp).Row - 2
Lig = NbLig
Do While Rows(Lig).Height = 0
Lig = Lig - 1
Loop
BackLog = Cells(Lig, "F")
End Sub
Public Sub CopyLastValue()
Dim lo As ListObject, rng As Range, x
Set lo = Range("Tableau11").ListObject
On Error Resume Next
Set rng = lo.ListColumns(1).DataBodyRange.SpecialCells(xlCellTypeVisible)
On Error GoTo 0
If Not rng Is Nothing Then
x = VBA.Split(rng.Address, ":")
Range("F277").Value = Range(x(UBound(x))).Offset(, 5).Value
End If
End Sub