Applescript and conditional formatting
Applescript and conditional formatting
- Subject: Applescript and conditional formatting
- From: Christian Prinoth <email@hidden>
- Date: Wed, 25 May 2011 13:06:03 +0200
I am trying to create conditional formattings via applescript in Microsoft Excel 2011.
Currently I am able to create "classic" format conditions, like this:
tell application "Microsoft Excel 2011"
set bold of font object of (make new format condition at end of selection with properties {format condition type:cell value, condition operator:operator between, formula1:"0", formula2:"10"}) to true
end tell
but I am unable to create the new conditions that this version of Excel supports (color scale, databar, icon set).
I understand that a color scale format condition expects a "color scale criterion" property, but am unsure how to pass that to the dictionary in the "make new color scale format condition" statement. Should I create che criterions with separate make new statements, and then pass references as properties? I think color scale criteria should be a list of "color scale criterion" objects.
the following does not work:
set cs to make new color scale criterion with properties {color scale criterion index:1, color scale criterion type:condition value number, color scale criterion value:0}
Thanks for any help
Chris
_______________________________________________
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