2012-11-20 177 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