0
0
Google Sheetsspreadsheet~5 mins

Creating custom menus in Google Sheets - Quick Revision & Summary

Choose your learning style9 modes available
Recall & Review
beginner
What is a custom menu in Google Sheets?
A custom menu is a special menu you add to the Google Sheets toolbar. It lets you run your own scripts easily without opening the script editor.
Click to reveal answer
beginner
Which Google Apps Script function is used to add a custom menu when the spreadsheet opens?
The onOpen() function runs automatically when you open the sheet. Inside it, you add your custom menu using SpreadsheetApp.getUi().createMenu().
Click to reveal answer
beginner
How do you add an item to a custom menu in Google Sheets?
Use the addItem(name, functionName) method on the menu object. The name is what shows in the menu, and functionName is the script function it runs.
Click to reveal answer
beginner
Why do you need to save and reload the spreadsheet after adding a custom menu script?
Because the onOpen() function runs only when the sheet opens. Reloading triggers it to add your new custom menu to the toolbar.
Click to reveal answer
beginner
What is the purpose of the SpreadsheetApp.getUi() method in creating custom menus?
It gets the user interface object for the spreadsheet. This object lets you create menus, dialogs, and sidebars to interact with users.
Click to reveal answer
Which function automatically runs when you open a Google Sheet to add a custom menu?
AonEdit()
BonOpen()
CaddMenu()
DstartMenu()
What method do you use to create a new custom menu in Google Sheets?
ASpreadsheetApp.getUi().createMenu()
BSpreadsheetApp.createMenu()
CSpreadsheetApp.getMenu()
DSpreadsheetApp.newMenu()
How do you add an item that runs a script function to your custom menu?
AaddItem('Name', 'functionName')
BaddMenu('Name', 'functionName')
CaddFunction('Name', 'functionName')
DaddScript('Name', 'functionName')
After writing the script to add a custom menu, what must you do to see it in your Google Sheet?
ANothing, it appears automatically
BClose the script editor only
CRun the script manually
DReload the spreadsheet
What does SpreadsheetApp.getUi() return?
AThe script editor window
BThe spreadsheet data
CThe user interface object for the spreadsheet
DThe spreadsheet settings
Explain how to create and add a custom menu in Google Sheets using Apps Script.
Think about what happens when the sheet opens and how you add menu items.
You got /6 concepts.
    Why is the onOpen() function important for custom menus in Google Sheets?
    Consider when your menu needs to be visible to users.
    You got /3 concepts.