Bonjour,
J'utilise des mises en page personnalisées dans ma barre d'outils du type:
Sub CStandardPageSetup()
If Cprint = 1 Then
nomsoc = InputBox("Nom société? -> figurera haut page gauche", , "xxxxxxxxx")
End If
With ActiveSheet.PageSetup
.LeftHeader = "&""Arial,Standard""&B" & nomsoc
.LeftFooter = "&""Arial,Kursiv""&6&Z&F"
.CenterFooter = "&""Arial,Standard""&8&A"
.RightFooter = "&""Arial,Standard""&8&D &T Page &P/&N"
.LeftMargin = Application.InchesToPoints(0.196850393700787)
.RightMargin = Application.InchesToPoints(0.196850393700787)
.TopMargin = Application.InchesToPoints(0.393700787401575)
.BottomMargin = Application.InchesToPoints(0.393700787401575)
.HeaderMargin = Application.InchesToPoints(0.196850393700787)
.FooterMargin = Application.InchesToPoints(0.196850393700787)
.CenterHorizontally = True
.PrintComments = xlPrintInPlace
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = False
.PrintErrors = xlPrintErrorsDisplayed
End With
ActiveWindow.SelectedSheets.PrintPreview
End Sub
, mais elles s'avèrent chaque fois longue à l'exécution avec ou sans aperçu.
Comment accélérer ce type de macro?
Merci d'avance