I need to change Page Orientation property to the "Landscape" value in a programmable way using VBA. Currently, I'm using the following code:
Application.ActivePage.PageSheet.CellsU("PrintPageOrientation").Formula = 2
But this only works for a printer not for the page I'm changing.
I've been looking for appropriate Cell in the Microsoft documentation but I haven't had any success.
Thanks for any help.