1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Spreadsheet GAS 入門 「マクロを図形に割り当てる」

Last updated at Posted at 2018-04-14

流れ

  1. 図形の作成
  2. マクロを割り当てる

1. 図形を作成する

[挿入]->[図形描画]
スクリーンショット 2018-04-14 19.11.40.png
編集して[保存して閉じる]
スクリーンショット 2018-04-14 19.12.58.png
図形を確認
スクリーンショット 2018-04-14 19.14.20.png

2. マクロを割り当てる

割り当てる関数(ファンクション)名を確認
[ツール]->[スクリプトエディタ]
スクリーンショット 2018-04-14 19.21.02.png

function 「ここの部分」()
今回の場合[myFunction]が関数名です。
スクリーンショット 2018-04-14 19.20.02.png

追加した図形にマクロを割り当てる
図形をクリックした後、図形のの右側の「...」をクリック
[スクリプトを割り当て]を選択
スクリーンショット 2018-04-14 19.14.45.png

今回の場合[myFunction]と書く
スクリーンショット 2018-04-14 19.31.49.png

これでボタンを押すことで[myFunction()]が動き出します。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?