1

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 ディクショナリに役立つ Apple スクリプト コマンドが見つかりません。 ここに画像の説明を入力

4

1 に答える 1

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
于 2012-11-20T14:54:47.683 に答える