Help us understand the problem. What is going on with this article?

ExcelVBA と GoogleSpreadSheet で「3×5=15」をマクロ記録で作成してみた。

ExcelVBA

Sub s3kakeru5()
    Range("B3").Select
    ActiveCell.FormulaR1C1 = "3"
    Range("B4").Select
    ActiveCell.FormulaR1C1 = "5"
    Range("B5").Select
    ActiveCell.FormulaR1C1 = "=R[-2]C*R[-1]C"
    Range("B6").Select
End Sub

GoogleSpreadSheet

function _3kakeru5() {
  var spreadsheet = SpreadsheetApp.getActive();
  spreadsheet.getRange('B3').activate();
  spreadsheet.getCurrentCell().setValue('3');
  spreadsheet.getRange('B4').activate();
  spreadsheet.getCurrentCell().setValue('5');
  spreadsheet.getRange('B5').activate();
  spreadsheet.getCurrentCell().setFormula('=B3*B4');
  spreadsheet.getRange('B6').activate();
};

初回GASのエラーがでます。

承認が必要
このドキュメントに添付されたスクリプトを実行するには、あなたの許可が必要です。
続行 キャンセル

(参考)Google Apps Scriptの初回実行に必要となる承認手順
https://www.virment.com/step-allow-google-apps-script/

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away