I'm trying to clear up a minor nuisance I'm having. I have several macros, running from Attachmate, that output Excel spreadsheets that print out slightly too wide to fit on one page. Obviously, it's not hard to just change it myself after the macro's done, but I'd like to be able to be already setup to print to 1 page wide. The code I'm using to try to do this, which I copied and modified from a recorded Excel macro is:
Any help would be appreciated
Code:
with wb.worksheets("BatchListing").PageSetup
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = ""
.CenterFooter = ""
.RightFooter = ""
.PrintHeadings = False
.PrintGridlines = False
.CenterHorizontally = False
.CenterVertically = False
.BlackAndWhite = False
.FitToPagesWide = 1
End With
Any help would be appreciated