如何使用AppleScript在Excel 2008中将垂直轴标题应用为旋转标题,水平标题,垂直标题。
tell application "Microsoft Excel"
tell worksheet 1 of active workbook
set ochart to chart of chart object "chartname"
tell ochart
set cattitle to gat axis of ochart axis type category axis which axis primary axis
tell cattitle
set has title to 1
----- how to apply a title position (Horizontal,Rotated,Vertical title)
end tell
end tell
end tell
我在apple excel词典中找不到有用的苹果脚本命令。
答案 0 :(得分:0)
尝试:
tell application "Microsoft Excel"
tell worksheet "Sheet1" of active workbook
set ochart1 to chart of chart object 1
tell ochart1
set valueA to get axis axis type value axis which axis primary axis
tell valueA
set it's has title to true
set axis title text of it's axis title to "Rotated"
end tell
end tell
end tell
end tell