Guest User

Untitled

a guest
Jan 22nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. function onOpen() {
  2.  
  3. SpreadsheetApp
  4. .getUi()
  5. .createMenu('My Menu')
  6. .addItem('Show instructions', 'showInstructions')
  7. .addToUi();
  8. }
  9.  
  10. function showInstructions() {
  11.  
  12. var html = HtmlService
  13. .createHtmlOutputFromFile('instructions')
  14. .setWidth(1500)
  15. .setHeight(800);
  16.  
  17. SpreadsheetApp.getUi().showModalDialog(html, ' ');
  18. }
  19.  
  20. <!DOCTYPE html>
  21. <html>
  22. <head>
  23. <base target="_top">
  24. </head>
  25. <body>
  26. <div style="text-align:center;">
  27. <iframe width="1050" height="550" style="border: 0" src="COPIED_LINK_HERE?embedded=true&widget=false&chrome=false&headers=false"></iframe>
  28. </div>
  29. </body>
  30. </html>
Add Comment
Please, Sign In to add comment