chinel
XLDnaute Impliqué
Salut tout le monde!
j'ai un problème car je n'arrive pas à sélectionner mes cellules de A4 à M45
il m'imprime toute ma feuille
voici mon code :
sub imprimer ()
Range("A4:M45").Select
rep = InputBox("nombre d'impression", , 1)
If Not (IsNumeric(rep)) Or rep = "" Or rep < 1 Then Exit Sub
ActiveWindow.SelectedSheets.PrintOut Copies:=rep
end sub
merci à tous !
j'ai un problème car je n'arrive pas à sélectionner mes cellules de A4 à M45
il m'imprime toute ma feuille
voici mon code :
sub imprimer ()
Range("A4:M45").Select
rep = InputBox("nombre d'impression", , 1)
If Not (IsNumeric(rep)) Or rep = "" Or rep < 1 Then Exit Sub
ActiveWindow.SelectedSheets.PrintOut Copies:=rep
end sub
merci à tous !