Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to manipulate and print a chart in MS Excel from AppleScript?
    primarykey
    data
    text
    <p>With an existing chart in a MS Excel for Mac 2008, in AppleScript, I am trying to do two things:</p> <ol> <li>Rotate a 3D chart 1°</li> <li>Save the chart as a image (png)</li> </ol> <p>From what I've found on the Intertubes, it seems possible. But AppleScript's awkward verbosity and the lack of non-trivial MS Excel AppleScript examples on the web are too much for me to overcome.</p> <p>Just for the saving part, this is what I have so far:</p> <pre><code>tell application "Microsoft Excel" activate object worksheet "iozone-16" set cht to chart object 1 of active sheet tell cht #save as chart object [picture type enumeration] [file name Unicode text] #Argh!!! end tell end tell </code></pre> <p>The 'rotate 1°' task seems to involve <em>"internal objects"</em>, but that is as far as I've gotten. By 'rotate', I mean to rotate the chart object itself, not the image. This can be done in with the Format Chart dialog box for ... <a href="http://dietpizza.ch/images/3d-rotation-ms-excel-dialog-box.png" rel="nofollow noreferrer">MS Excel Dialog Box http://dietpizza.ch/images/3d-rotation-ms-excel-dialog-box.png</a></p> <p>By manipulating this value, it the chart object changes as in below these next two images. (15° for effect)</p> <p><a href="http://dietpizza.ch/images/3d-rotation-0.png" rel="nofollow noreferrer">MS Excel 3D graph example 0 http://dietpizza.ch/images/3d-rotation-0.png</a> <a href="http://dietpizza.ch/images/3d-rotation-1.png" rel="nofollow noreferrer">MS Excel 3D graph example 1 http://dietpizza.ch/images/3d-rotation-1.png</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload