Private Sub DefPrintArea()
Dim i&, j&
With Sheets("Feuil1")
For j = Range("j1").Column To 1 Step -1
If .Cells(Rows.Count, j).End(xlUp).Row > 2 Then Exit For
Next j
i = .Cells(Rows.Count, "a").End(xlUp).Row
If i > 2 And j > 0 Then .PageSetup.PrintArea = .Range("a2").Resize(i - 1, j).Address
End With
End Sub