bonjour j'ai cette fonction et je souhaite mettre en code vba zone impression definir tout simplement juste apresvoila la fonction
Code : Sélectionner tout - Visualiser dans une fenêtre à part plage.Select
merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 Sub imprime_zone_utilisee(nom_feuille As String, ligne_depart As Integer, colonne_depart As Integer, colonne_fin As Integer) Dim ligne_fin As Integer Dim plage As Range ligne_fin = Worksheets(nom_feuille).usedrange.Row + Worksheets(nom_feuille).usedrange.Rows.Count Set plage = Worksheets(nom_feuille).Range(Worksheets(nom_feuille).Cells(ligne_depart, colonne_depart), Worksheets(nom_feuille).Cells(ligne_fin, colonne_fin)) plage.Select Set plage = Nothing End Sub
Partager