Good afternoon. Just a follow-up on my previously posted question really. Why should the following code only produce the expected result if I insert a Breakpoint & step (F8) through the code but not if I just let it run as part of the rest of the code?
Many thanks,
D€$
Code:
Application.PrintCommunication = False
With ActiveSheet.PageSetup
.CenterFooter = "Page &P of &N"
.RightFooter = "&D"
.Orientation = xlLandscape
.PaperSize = xlPaperA4
.FitToPagesWide = 1
.FitToPagesTall = 0
.PrintTitleRows = "$1:$2"
.PrintTitleColumns = ""
End With
Application.PrintCommunication = True
Many thanks,
D€$