G
Guest
I am trying to add Code to my module in Access after it does a TransferSpreadSheet Export that will change the page settings in Excel to Landscape/Legal.
I have tried by putting in:
appxls.ActiveSheet.PageSetup.PrintArea = ""
appxls.ActiveSheet.PageSetup
appxls.Orientation = xlLandscape
appxls.PaperSize = xlPaperLegal
But I am getting a runtime error: Run-time error '438 (Object doesn't support this property or method).
What is wrong?
Please advise.
Thanks,
KSG Ent
I have tried by putting in:
appxls.ActiveSheet.PageSetup.PrintArea = ""
appxls.ActiveSheet.PageSetup
appxls.Orientation = xlLandscape
appxls.PaperSize = xlPaperLegal
But I am getting a runtime error: Run-time error '438 (Object doesn't support this property or method).
What is wrong?
Please advise.
Thanks,
KSG Ent