0

In Office 2008, how may I set the theme color in conditional formatting using AppleScript?

tell format color of color scale criterion 1 of colorcellObject
set theme color to first accent theme color
end tell

This script through errors (set theme color object is not defined).

SO13583113 question example

pnuts
  • 58,317
  • 11
  • 87
  • 139
user1705318
  • 77
  • 1
  • 13

1 Answers1

0

I have no experience with Applescript (using VBA in Windows myself), but I would suggest using the {[0-255],[0-255],[0-255]} codes for the RGB colors.

These can be hardcoded if you know the codes beforehand, possibly you could use a small section of your excel to apply the appropriate colors to and refer to those in your script.

For the script follow along the lines of this: AppleScript: set Microsoft Excel cell's background color

Community
  • 1
  • 1
K_B
  • 3,668
  • 1
  • 19
  • 29