Giải pháp hiệu quả tăng Traffic cho website
Traffic Exchange Site

Cách tạo menu chức năng và chạy macros trên google sheets

By
( Khởi nghiệp với Internet)
function onOpen( ){
// This line calls the SpreadsheetApp and gets its UI   
// Or DocumentApp or FormApp.
  var ui = SpreadsheetApp.getUi();
 
//These lines create the menu items and 
// tie them to functions we will write in Apps Script
  
 ui.createMenu('Học Excel Online')
      .addItem('1. formulasToValuesActiveSheet', 'formulasToValuesActiveSheet')
      .addItem('2. formulasToValuesGlobal', 'formulasToValuesGlobal')
      .addItem('3. sortSheets', 'sortSheets')
      .addItem('4. unhideRowsColumnsActiveSheet', 'unhideRowsColumnsActiveSheet')
      .addItem('5. unhideRowsColumnsGlobal', 'unhideRowsColumnsGlobal')
      .addItem('6. setTabColor', 'setTabColor')
      .addItem('7. resetTabColor', 'resetTabColor')
      .addItem('8. hideAllSheetsExceptActive', 'hideAllSheetsExceptActive')
      .addItem('9. unhideAllSheets', 'unhideAllSheets')
      .addItem('10. resetFilter', 'resetFilter')
      .addSeparator()
      .addSubMenu(ui.createMenu('Các khóa học')
                  .addItem('Google Sheets cho người mới bắt đầu', 'course01')
                  .addItem('Google Sheets cho người đi làm', 'course02'))
      .addToUi();
}

function course01() {
  Browser.msgBox("Chào mừng đến với khóa học");
}



Blog tổng hợp những kinh nghiệm được học, áp dụng và chia sẻ


Loading...