M
mroma
Guest
Bjr,
Je n'arrive pas à imbriquer mes 3 boucles for suivante :
Une idée ?
Merci ! 😉
Je n'arrive pas à imbriquer mes 3 boucles for suivante :
Code:
With ActiveSheet() ' With ThisWorkbook.Sheets("Document")
' Colonne H = CAT Garder les doc [D]
For i = .Range("H" & .Rows.Count).End(xlUp).Row To 2 Step -1
If .Range("H" & i).Value <> "[D]" Then
.Rows(i).Delete
End If
Next i
End With
With ActiveSheet() ' With ThisWorkbook.Sheets("Document")
' Barrer la cellule si absence de "ACTUAL DATE" dans colonne R
For k = .Range("R" & .Rows.Count).End(xlUp).Row To 2 Step -1
If .Range("R" & k).Value = "" Then
.Range("R" & k).Borders(xlDiagonalUp).LineStyle = xlContinuous
.Range("R" & k).Borders(xlDiagonalDown).LineStyle = xlContinuous
End If
Next k
End With
With ActiveSheet() ' With ThisWorkbook.Sheets("Document")
' Barrer la cellule si absence de "CLIENT REFERENCE" dans colonne F
For j = .Range("F" & .Rows.Count).End(xlUp).Row To 2 Step -1
If .Range("F" & j).Value = "" Then
.Range("F" & j).Borders(xlDiagonalUp).LineStyle = xlContinuous
.Range("F" & j).Borders(xlDiagonalDown).LineStyle = xlContinuous
End If
Next j
End With
Une idée ?
Merci ! 😉