[VBA: définition de la zone d'impression]
Résolu
P-Yves
-
Sarah738 -
Sarah738 -
A voir également:
- Définir zone impression excel
- L'indice n'appartient pas à la sélection vba - Forum VB / VBA
- Incompatibilité de type vba ✓ - Forum Programmation
- Excel compter cellule couleur sans vba - Guide
- Vba attendre 1 seconde ✓ - Forum VB / VBA
- Vba ouvrir un fichier excel avec chemin ✓ - Forum VB / VBA
9 réponses
On peut aussi utiliser la propriété Address de VBA :
Sub ZoneImp()
Dim intColMin As Integer, intColMax As Integer
Dim intLinMin As Integer, intLinMax As Integer
intColMin = 1
intColMax = 12
intLinMin = 2
intLinMax = 25
ActiveSheet.PageSetup.PrintArea = Range(Cells(intLinMin, intColMin), Cells(intLinMax, intColMax)).Address
End Sub
Sub ZoneImp()
Dim intColMin As Integer, intColMax As Integer
Dim intLinMin As Integer, intLinMax As Integer
intColMin = 1
intColMax = 12
intLinMin = 2
intLinMax = 25
ActiveSheet.PageSetup.PrintArea = Range(Cells(intLinMin, intColMin), Cells(intLinMax, intColMax)).Address
End Sub
patrick77flyers
Messages postés
3
Date d'inscription
Statut
Membre
Dernière intervention
J'ai utilisé ta formule, mais le problème est que moi je veux tout sélectionné la feuille pour enfin la défnir en zone d'impression