If I step through the following code (F8) it works, apart from this odd message when it gets to the ".FitToPagesWide = 1"
Say OK to this message & it carries on OK.
BUT, if I just try to run it (F5) All I get on the page is
in the centre, and nothing else!!
I have seen another post about there being an issue with Excel 2010, but I'd like to figure this out.
Many thanks,
D€$
Code:
Application.PrintCommunication = False
With ActiveSheet.PageSetup
.LeftFooter = ""
.CenterFooter = "Page &P of &N[]"
.CenterFooter = "Page &P of &N"
.RightFooter = "&D"
.Order = xlDownThenOver
.BlackAndWhite = False
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = False
.PrintErrors = xlPrintErrorsDisplayed
.OddAndEvenPagesHeaderFooter = False
.DifferentFirstPageHeaderFooter = False
.ScaleWithDocHeaderFooter = True
.AlignMarginsHeaderFooter = False
End With
Application.PrintCommunication = True
Say OK to this message & it carries on OK.
Code:
"The number must be between 10 and 400. Try again by entering a number in this range."
BUT, if I just try to run it (F5) All I get on the page is
Code:
Page 1 of
I have seen another post about there being an issue with Excel 2010, but I'd like to figure this out.
Many thanks,
D€$