Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim nbcol As Byte
If ActiveCell.Row <> 1 Then
MsgBox ("Vous devez sélectionner la semaine à imprimer")
Cancel = True
Exit Sub
End If
nbcol = 4
If ActiveCell.Column = 2 Then nbcol = 3
Range(Cells(2, ActiveCell.Column), Cells(19, ActiveCell.Column + nbcol)).PrintPreview
End Sub