2012-11-20 218 views
1

如何在Excel 2008中使用AppleScript将垂直轴标题应用为旋转标题,水平标题,垂直标题。轴标题设置

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 

我在苹果excel字典中找不到苹果脚本命令有帮助。 enter image description here

回答

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 
+0

嗨,我的问题是如何应用在图表上一个旋转的标题和垂直称号。你的脚本是创建一个标题与水平位置与文字“你的标题”。我想创建一个旋转位置的标题。看到一张照片。 – user1705318

+0

现在我明白了,谢谢你的照片。尝试编辑的版本。 – adayzdone

+0

大家好。 – user1705318