Hello,
I have been beating my head into the wall to figure this one out. I have created the following AppleScript to set some items in the Page Setup:
tell application “Microsoft Excel”
tell page setup object of active sheet
set page orientation to landscape
set zoom to false
set fit to pages wide to 1
set fit to pages tall to 9999
end tell
end tell
So that seems to work. The problem is I need to also be able to change the Paper Size to US Legal using AppleScript as well. To change it in the GUI, I go to File… Page Setup… Options… {change the paper size to whatever you want} then click OK, OK
Is changing the Paper Size via AppleScript possible?
Instead of AppleScript, I have tried both Automator and QuicKeys… both seem to have trouble with the deeper Page Setup menu (Page Setup… click Options… to get to another Page Setup window).
It seems like Word 2008 has a way to change the paper size via AppleScript, but I’m starting to think it is impossible in Excel 2008.
Thanks for your help!