Viết ứng dụng tính tổng trong Apps Script

 

Viết ứng dụng tính tổng trong Apps Script

Cách lập trình ra ứng dụng tính tổng trong Apps Script Google

1. Code tính tổng 2 số với Apps Script


function TinhTong() {
   var trangtinh = SpreadsheetApp.getActive();
   var so_a =0; //?? lấy từ đâu
   var so_b=0;    
   trangtinh.getRange("C5").activate();
   so_a = trangtinh.getCurrentCell().getValue(); 

   trangtinh.getRange("C6").activate();
   so_b = trangtinh.getCurrentCell().getValue(); 

   var tong= so_a + so_b;
   trangtinh.getRange("C7").activate();
   trangtinh.getCurrentCell().setValue(tong);

}
2. Video

 

Nhận xét

Bài đăng phổ biến từ blog này

Tại sao học Apps Script mang nhiều lợi ích

Các phép toán trong Apps Script Google

Đối tượng Logger trong Apps Script