Excel 2008 - 'Autofit' broken?
Excel 2008 - 'Autofit' broken?
- Subject: Excel 2008 - 'Autofit' broken?
- From: Barry Wainwright <email@hidden>
- Date: Sat, 03 Jan 2009 17:47:31 +0000
The following syntax used to work in Excel 2004, but is now broken in
2008:
tell application "Microsoft Excel"
set wb to make new workbook
set dataRange to range "A1:C4"
set value of dataRange to {{"one", "two", "three"}, {"one", "two",
"three"}, {"one", "two", "three"}, {"one", "two", "three"}}
autofit dataRange
end tell
In 2008 it produces the error "Microsoft Excel got an error: range
"A1:C4" doesn’t understand the autofit message."
can anyone else confirm or offer a work-round?
--
Barry _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden