• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Excel 2008 - 'Autofit' broken?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Excel 2008 - 'Autofit' broken?
      • From: Shane Stanley <email@hidden>
    • Re: Excel 2008 - 'Autofit' broken?
      • From: Matthew Smith <email@hidden>
  • Next by Date: Re: Duplicates files in iTunes after running applescript
  • Next by thread: Re: Excel 2008 - 'Autofit' broken?
  • Index(es):
    • Date
    • Thread