{"id":17026,"date":"2025-01-04T10:00:12","date_gmt":"2025-01-04T01:00:12","guid":{"rendered":"https:\/\/84office.jp\/?p=17026"},"modified":"2025-01-05T12:54:28","modified_gmt":"2025-01-05T03:54:28","slug":"script-execution-simple","status":"publish","type":"post","link":"https:\/\/84office.jp\/en\/script-execution-simple\/","title":{"rendered":"Simplify Google Apps Script Execution: How to Use Shape Buttons and Macro Imports"},"content":{"rendered":"<div class=\"codoc-evacuations\" style=\"display:none;\" data-shortcode=\"\"><\/div>\n<p>Google Apps Script (GAS) can help streamline your daily tasks, but have you ever found it inconvenient to run scripts directly from the GAS editor every time?<\/p>\n\n\n\n<p>Wouldn&#8217;t it be great if you could execute GAS directly from your spreadsheet more easily and save even more time?<\/p>\n\n\n\n<p class=\"u-mb-ctrl u-mb-40\">In this article, we\u2019ll introduce two simple methods for running GAS directly within Google Sheets: <strong>using shape buttons<\/strong> and <strong>using macro imports.<\/strong><\/p>\n\n\n<div class=\"swell-block-postLink u-mb-ctrl u-mb-60\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/a66c1f10e6c571913855ae0afa0cddda-300x158.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/84office.jp\/en\/gmail-transcript\/\">Streamline Your Workflow with Google Apps Script: Easily Transfer Gmail Content to Google Sheets<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Do you find it time-consuming and tedious to manually transfer information received in Gmail to a Google Sheet? When you need to extract only the necessary i&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<h2 class=\"wp-block-heading\">Example Output<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><strong>Running Google Apps Script Using Shape Buttons<\/strong><\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image size-large is-resized u-mb-ctrl u-mb-40\"><img decoding=\"async\" width=\"1024\" height=\"363\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/7db299288e924948551d778d05964945-1024x363.png\" alt=\"\" class=\"wp-image-17028\" style=\"width:734px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/7db299288e924948551d778d05964945-1024x363.png 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/7db299288e924948551d778d05964945-300x106.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/7db299288e924948551d778d05964945-768x272.png 768w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/7db299288e924948551d778d05964945.png 1398w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-border -border02 u-mb-ctrl u-mb-40 has-swl-pale-03-background-color has-background\"><strong>Shape buttons allow for intuitive and user-friendly operation.<\/strong><\/p>\n\n\n\n<p>By clicking a shape button placed in your Google Spreadsheet, the assigned GAS script is executed immediately.<\/p>\n\n\n\n<p>For example, you can assign a script that retrieves specific Gmail data to a button, and simply pressing the button will trigger the process.<\/p>\n\n\n\n<p class=\"u-mb-ctrl u-mb-60\">This approach is visually intuitive, ensuring users can operate it without confusion about what the button does.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Running Google Apps Script Using Macro Imports<\/strong><\/h3>\n\n\n<div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"436\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/36c52468343354804a0360ffaccfc068-1024x436.png\" alt=\"\" class=\"wp-image-17040\" style=\"width:586px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/36c52468343354804a0360ffaccfc068-1024x436.png 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/36c52468343354804a0360ffaccfc068-300x128.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/36c52468343354804a0360ffaccfc068-768x327.png 768w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/36c52468343354804a0360ffaccfc068.png 1404w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-border -border02 u-mb-ctrl u-mb-40 has-swl-pale-03-background-color has-background\"><strong>Easily executed from the menu.<br>Organize and manage multiple scripts.<\/strong><\/p>\n\n\n\n<p>From the <strong>&#8220;Extensions&#8221; &gt; &#8220;Macros&#8221;<\/strong> menu, you can easily select and run pre-created Apps Scripts.<\/p>\n\n\n\n<p>By adding frequently used scripts to the menu, you can significantly reduce the effort required for execution.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Execute Apps Script Using Shape Buttons<\/h2>\n\n\n\n<div class=\"swell-block-step\" data-num-style=\"circle\">\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">Create a Shape<\/div><div class=\"swell-block-step__body\"><div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-full is-resized\"><img decoding=\"async\" width=\"775\" height=\"904\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/cf37be7dcaf86caef700797ad9e40fcf.png\" alt=\"\" class=\"wp-image-17029\" style=\"width:411px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/cf37be7dcaf86caef700797ad9e40fcf.png 775w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/cf37be7dcaf86caef700797ad9e40fcf-257x300.png 257w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/cf37be7dcaf86caef700797ad9e40fcf-768x896.png 768w\" sizes=\"(max-width: 775px) 100vw, 775px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"u-mb-ctrl u-mb-40\">Go to <strong>&#8220;Insert&#8221; &gt; &#8220;Drawing&#8221;<\/strong> and select <strong>&#8220;Shape.&#8221;<\/strong><\/p>\n\n\n<div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"553\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/c6430f6afc433a7319622b282da37af8-1024x553.png\" alt=\"\" class=\"wp-image-17030\" style=\"width:654px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/c6430f6afc433a7319622b282da37af8-1024x553.png 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/c6430f6afc433a7319622b282da37af8-300x162.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/c6430f6afc433a7319622b282da37af8-768x415.png 768w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/c6430f6afc433a7319622b282da37af8-1536x830.png 1536w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/c6430f6afc433a7319622b282da37af8.png 1598w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"u-mb-ctrl u-mb-40\">From <strong>&#8220;Shapes,&#8221;<\/strong> select any shape (e.g., a rectangle) and draw it.<\/p>\n\n\n<div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"769\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/81fbea3852a5fb5c8a74776ab2be65b2-1024x769.png\" alt=\"\" class=\"wp-image-17031\" style=\"width:546px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/81fbea3852a5fb5c8a74776ab2be65b2-1024x769.png 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/81fbea3852a5fb5c8a74776ab2be65b2-300x225.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/81fbea3852a5fb5c8a74776ab2be65b2-768x577.png 768w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/81fbea3852a5fb5c8a74776ab2be65b2.png 1304w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"u-mb-ctrl u-mb-40\">Right-click on the shape you created and select <strong>&#8220;Edit text&#8221;<\/strong> to add text to it.<\/p>\n\n\n<div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-full is-resized\"><img decoding=\"async\" width=\"498\" height=\"336\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/image-15.png\" alt=\"\" class=\"wp-image-17032\" style=\"width:237px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/image-15.png 498w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/image-15-300x202.png 300w\" sizes=\"(max-width: 498px) 100vw, 498px\" \/><\/figure>\n<\/div>\n\n\n<p>Add clear and descriptive text to the shape.<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">Assign the Script<\/div><div class=\"swell-block-step__body\"><div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-full is-resized\"><img decoding=\"async\" width=\"682\" height=\"448\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/ae18587fa36055e76ddbeb32be55b95e.png\" alt=\"\" class=\"wp-image-17033\" style=\"width:426px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/ae18587fa36055e76ddbeb32be55b95e.png 682w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/ae18587fa36055e76ddbeb32be55b95e-300x197.png 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"u-mb-ctrl u-mb-40\">Click on the created shape, then select <strong>&#8220;Assign script&#8221;<\/strong> from the right-click menu or the <strong>&#8220;&#8230;&#8221;<\/strong> menu.<\/p>\n\n\n<div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-full is-resized\"><img decoding=\"async\" width=\"866\" height=\"548\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/4f07e35277055778c180867ed3f61f3c.png\" alt=\"\" class=\"wp-image-17034\" style=\"width:444px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/4f07e35277055778c180867ed3f61f3c.png 866w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/4f07e35277055778c180867ed3f61f3c-300x190.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/4f07e35277055778c180867ed3f61f3c-768x486.png 768w\" sizes=\"(max-width: 866px) 100vw, 866px\" \/><\/figure>\n<\/div>\n\n\n<p>Enter the name of the script you want to execute (e.g., <strong><code>saveEmailsToSheet<\/code><\/strong>).<\/p>\n\n\n\n<p class=\"u-mb-ctrl u-mb-40\">Now, simply clicking the shape will run the assigned script.<\/p>\n\n\n\n<div class=\"swell-block-accordion\">\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">Script Name Location<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\"><div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-full is-resized\"><img decoding=\"async\" width=\"984\" height=\"434\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/afc955df45c353726340b7451a85f2b4.png\" alt=\"\" class=\"wp-image-17035\" style=\"width:548px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/afc955df45c353726340b7451a85f2b4.png 984w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/afc955df45c353726340b7451a85f2b4-300x132.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/afc955df45c353726340b7451a85f2b4-768x339.png 768w\" sizes=\"(max-width: 984px) 100vw, 984px\" \/><\/figure>\n<\/div>\n\n\n<p>If your script starts with <code>function saveEmailsToSheet() {<\/code>, copy the <strong><code>saveEmailsToSheet<\/code><\/strong> portion and paste it when assigning the script to the shape.<\/p>\n<\/div><\/details>\n<\/div>\n\n\n\n\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">Test and Verify<\/div><div class=\"swell-block-step__body\"><div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-large\"><img decoding=\"async\" width=\"1024\" height=\"417\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/2cfa90065dc54aae17f40c1f29e2ee41-1024x417.png\" alt=\"\" class=\"wp-image-17036\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/2cfa90065dc54aae17f40c1f29e2ee41-1024x417.png 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/2cfa90065dc54aae17f40c1f29e2ee41-300x122.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/2cfa90065dc54aae17f40c1f29e2ee41-768x313.png 768w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/2cfa90065dc54aae17f40c1f29e2ee41-1536x626.png 1536w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/2cfa90065dc54aae17f40c1f29e2ee41-2048x835.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"u-mb-ctrl u-mb-40\">Click the button on the spreadsheet to ensure the script executes as expected.<\/p>\n\n\n\n<div class=\"wp-block-group is-style-big_icon_memo u-mb-ctrl u-mb-60\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<p>If you&#8217;re running the script for the first time, you need to authorize it.<\/p>\n\n\n\n<p><strong>Therefore, press &#8220;<strong>Review Permissions.<\/strong>&#8220;<\/strong><\/p>\n\n\n<div class=\"wp-block-image u-mb-ctrl u-mb-50\">\n<figure class=\"alignleft size-full\"><img decoding=\"async\" width=\"882\" height=\"345\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/image-79.png\" alt=\"\" class=\"wp-image-15938\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/image-79.png 882w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/image-79-300x117.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/image-79-768x300.png 768w\" sizes=\"(max-width: 882px) 100vw, 882px\" \/><\/figure>\n<\/div>\n\n\n<div class=\"swell-block-accordion\">\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">Detailed Authorization Steps<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<p><strong>Press &#8220;Advanced.&#8221;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full u-mb-ctrl u-mb-50\"><img decoding=\"async\" width=\"1272\" height=\"688\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/188993dfac23ed4b35c326d75de2796d.jpg\" alt=\"\" class=\"wp-image-15939\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/188993dfac23ed4b35c326d75de2796d.jpg 1272w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/188993dfac23ed4b35c326d75de2796d-300x162.jpg 300w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/188993dfac23ed4b35c326d75de2796d-1024x554.jpg 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/188993dfac23ed4b35c326d75de2796d-768x415.jpg 768w\" sizes=\"(max-width: 1272px) 100vw, 1272px\" \/><\/figure>\n\n\n\n\n\n\n\n<p><strong>Press &#8220;Go to Untitled project (Unsafe).&#8221;<\/strong><\/p>\n\n\n<div class=\"wp-block-image u-mb-ctrl u-mb-50\">\n<figure class=\"alignleft size-full\"><img decoding=\"async\" width=\"1305\" height=\"893\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/b7775751f92380510b389302eaafe1b9.jpg\" alt=\"\" class=\"wp-image-15940\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/b7775751f92380510b389302eaafe1b9.jpg 1305w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/b7775751f92380510b389302eaafe1b9-300x205.jpg 300w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/b7775751f92380510b389302eaafe1b9-1024x701.jpg 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/b7775751f92380510b389302eaafe1b9-768x526.jpg 768w\" sizes=\"(max-width: 1305px) 100vw, 1305px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>After that, press &#8220;Allow.&#8221;<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-full is-resized\"><img decoding=\"async\" width=\"955\" height=\"543\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/7ebb34b4d2c42fa532ad1c35c1ec1049.jpg\" alt=\"\" class=\"wp-image-15941\" style=\"width:566px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/7ebb34b4d2c42fa532ad1c35c1ec1049.jpg 955w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/7ebb34b4d2c42fa532ad1c35c1ec1049-300x171.jpg 300w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/11\/7ebb34b4d2c42fa532ad1c35c1ec1049-768x437.jpg 768w\" sizes=\"(max-width: 955px) 100vw, 955px\" \/><\/figure>\n<\/div>\n\n\n\n<\/div><\/details>\n<\/div>\n<\/div><\/div>\n<\/div><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Execute Apps Script Using Macro Imports<\/strong><\/h2>\n\n\n\n<div class=\"swell-block-step u-mb-ctrl u-mb-60\" data-num-style=\"circle\">\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">Import a Macro<\/div><div class=\"swell-block-step__body\"><div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"446\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/a9b927d981a601fdac835005c5c1d6cf-1024x446.png\" alt=\"\" class=\"wp-image-17037\" style=\"width:570px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/a9b927d981a601fdac835005c5c1d6cf-1024x446.png 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/a9b927d981a601fdac835005c5c1d6cf-300x131.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/a9b927d981a601fdac835005c5c1d6cf-768x335.png 768w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/a9b927d981a601fdac835005c5c1d6cf.png 1405w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"u-mb-ctrl u-mb-40\">In your spreadsheet, go to <strong>&#8220;Extensions&#8221; &gt; &#8220;Macros&#8221; &gt; &#8220;Import macro.&#8221;<\/strong><\/p>\n\n\n<div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-full is-resized\"><img decoding=\"async\" width=\"1007\" height=\"824\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/dc1f3ec79e173557562638927b78baad.png\" alt=\"\" class=\"wp-image-17038\" style=\"width:471px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/dc1f3ec79e173557562638927b78baad.png 1007w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/dc1f3ec79e173557562638927b78baad-300x245.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/dc1f3ec79e173557562638927b78baad-768x628.png 768w\" sizes=\"(max-width: 1007px) 100vw, 1007px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"u-mb-ctrl u-mb-40\">Select the function you want to use from the list and click <strong>&#8220;Add function.&#8221;<\/strong><\/p>\n\n\n<div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"444\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/b570fc40cb9cfae5c157f68ba0bf183d-1024x444.png\" alt=\"\" class=\"wp-image-17039\" style=\"width:577px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/b570fc40cb9cfae5c157f68ba0bf183d-1024x444.png 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/b570fc40cb9cfae5c157f68ba0bf183d-300x130.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/b570fc40cb9cfae5c157f68ba0bf183d-768x333.png 768w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/b570fc40cb9cfae5c157f68ba0bf183d.png 1414w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>The selected function will be added to the menu as a macro.<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">Rename a Macro<\/div><div class=\"swell-block-step__body\"><div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"436\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/36c52468343354804a0360ffaccfc068-1024x436.png\" alt=\"\" class=\"wp-image-17040\" style=\"width:586px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/36c52468343354804a0360ffaccfc068-1024x436.png 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/36c52468343354804a0360ffaccfc068-300x128.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/36c52468343354804a0360ffaccfc068-768x327.png 768w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/36c52468343354804a0360ffaccfc068.png 1404w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"u-mb-ctrl u-mb-40\">To rename a macro you\u2019ve added, go to <strong>&#8220;Extensions&#8221; &gt; &#8220;Macros&#8221; &gt; &#8220;Manage macros.&#8221;<\/strong><\/p>\n\n\n<div class=\"wp-block-image u-mb-ctrl u-mb-40\">\n<figure class=\"alignleft size-full is-resized\"><img decoding=\"async\" width=\"870\" height=\"666\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/969f07f78bcc96b8276e6f55a745fb32.png\" alt=\"\" class=\"wp-image-17041\" style=\"width:406px;height:auto\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/969f07f78bcc96b8276e6f55a745fb32.png 870w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/969f07f78bcc96b8276e6f55a745fb32-300x230.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/969f07f78bcc96b8276e6f55a745fb32-768x588.png 768w\" sizes=\"(max-width: 870px) 100vw, 870px\" \/><\/figure>\n<\/div>\n\n\n<p>Here, click on the name of the macro you want to edit and change it to a more descriptive name.<\/p>\n\n\n\n<p>You can also assign a shortcut key to the macro on the same screen.<\/p>\n\n\n\n<p>By setting a shortcut key, you can execute the macro even faster.<\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading u-mb-ctrl u-mb-30\">Comparison: Shape Buttons vs. Macro Imports<\/h2>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-small_ttl u-mb-ctrl u-mb-40\" data-colset=\"col2\"><div class=\"cap_box_ttl\"><span><span class=\"swl-fz u-fz-l\"><strong>Benefits of Shape Buttons<\/strong><\/span><\/span><\/div><div class=\"cap_box_content\">\n<ul class=\"wp-block-list\">\n<li class=\"u-mb-ctrl u-mb-20\"><strong>Intuitive and Easy to Understand<\/strong><br>Shape buttons are visual, making it immediately clear which script will be executed.<\/li>\n\n\n\n<li><strong>Quick Execution of Specific Tasks<\/strong><br>Simply pressing the button allows you to execute specific processes quickly.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-small_ttl u-mb-ctrl u-mb-60\" data-colset=\"col3\"><div class=\"cap_box_ttl\"><span><span class=\"swl-fz u-fz-l\"><strong>Benefits of Macro Imports<\/strong><\/span><\/span><\/div><div class=\"cap_box_content\">\n<ul class=\"wp-block-list\">\n<li class=\"u-mb-ctrl u-mb-20\"><strong><strong>Organizing Multiple Scripts<\/strong><\/strong><br>If you have multiple scripts, you can organize and add them to the menu for easy management and use.<\/li>\n\n\n\n<li><strong><strong>Easy Access from the Menu<\/strong><\/strong><br>Scripts can be executed with a simple click from the menu, streamlining routine tasks.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading u-mb-ctrl u-mb-30\">Conclusion<\/h2>\n\n\n\n<p>By using the two methods introduced\u2014<strong>Shape Buttons<\/strong> and <strong>Macro Imports<\/strong>\u2014running Google Apps Script (GAS) becomes much simpler.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Shape Buttons<\/strong> are ideal for intuitively executing specific scripts.<\/li>\n\n\n\n<li><strong>Macro Imports<\/strong> are convenient for organizing and running multiple frequently-used scripts.<\/li>\n<\/ul>\n\n\n\n<p>Other options include adding scripts to a <strong>custom menu<\/strong> or utilizing <strong>add-ons<\/strong> for even more functionality.<\/p>\n\n\n\n<p class=\"u-mb-ctrl u-mb-30\">Choose the method that suits your workflow best and streamline your tasks for greater efficiency!<\/p>\n\n\n<div class=\"swell-block-postLink u-mb-ctrl u-mb-40\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/01\/a66c1f10e6c571913855ae0afa0cddda-300x158.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/84office.jp\/en\/gmail-transcript\/\">Streamline Your Workflow with Google Apps Script: Easily Transfer Gmail Content to Google Sheets<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Do you find it time-consuming and tedious to manually transfer information received in Gmail to a Google Sheet? When you need to extract only the necessary i&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"p-postListWrap u-mb-ctrl u-mb-20\"><ul class=\"p-postList -type-card -pc-col3 -sp-col1\"><li class=\"p-postList__item\">\n\t<a href=\"https:\/\/84office.jp\/en\/google-calendar-free-time-template\/\" class=\"p-postList__link\">\n\t\t<div class=\"p-postList__thumb c-postThumb\">\n\t<figure class=\"c-postThumb__figure\">\n\t\t<img decoding=\"async\" width=\"1024\" height=\"538\"  src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/ce7cc8b37e59afe6317fb52e1264cdbb-1024x538.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/ce7cc8b37e59afe6317fb52e1264cdbb-1024x538.jpg 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/ce7cc8b37e59afe6317fb52e1264cdbb-300x158.jpg 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/ce7cc8b37e59afe6317fb52e1264cdbb-768x403.jpg 768w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/ce7cc8b37e59afe6317fb52e1264cdbb.jpg 1200w\" sizes=\"auto, (min-width: 960px) 400px, 100vw\" loading=\"lazy\" >\t<\/figure>\n\t\t\t<span class=\"c-postThumb__cat icon-folder\" data-cat-id=\"12\">Google Sheets<\/span>\n\t<\/div>\n\t\t\t\t\t<div class=\"p-postList__body\">\n\t\t\t\t<h2 class=\"p-postList__title\">Google Calendar Free Time Finder Template\uff5cGoogle Sheets \u00d7 Apps Script<\/h2>\t\t\t\t\t\t\t\t<div class=\"p-postList__meta\">\n\t\t\t\t\t<div class=\"p-postList__times c-postTimes u-thin\">\n\t<time class=\"c-postTimes__posted icon-posted\" datetime=\"2025-07-25\" aria-label=\"\u516c\u958b\u65e5\">2025\u5e747\u670825\u65e5<\/time><\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t<\/a>\n<\/li>\n<li class=\"p-postList__item\">\n\t<a href=\"https:\/\/84office.jp\/en\/google-calendar-free-time-extraction\/\" class=\"p-postList__link\">\n\t\t<div class=\"p-postList__thumb c-postThumb\">\n\t<figure class=\"c-postThumb__figure\">\n\t\t<img decoding=\"async\" width=\"1024\" height=\"538\"  src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/44f75ff8829b781f2ffdba1b6396054f-1024x538.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/44f75ff8829b781f2ffdba1b6396054f-1024x538.jpg 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/44f75ff8829b781f2ffdba1b6396054f-300x158.jpg 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/44f75ff8829b781f2ffdba1b6396054f-768x403.jpg 768w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/44f75ff8829b781f2ffdba1b6396054f.jpg 1200w\" sizes=\"auto, (min-width: 960px) 400px, 100vw\" loading=\"lazy\" >\t<\/figure>\n\t\t\t<span class=\"c-postThumb__cat icon-folder\" data-cat-id=\"12\">Google Sheets<\/span>\n\t<\/div>\n\t\t\t\t\t<div class=\"p-postList__body\">\n\t\t\t\t<h2 class=\"p-postList__title\">How to Find Common Free Time in Google Calendar: Manage Shared Schedules with Google Apps Script<\/h2>\t\t\t\t\t\t\t\t<div class=\"p-postList__meta\">\n\t\t\t\t\t<div class=\"p-postList__times c-postTimes u-thin\">\n\t<time class=\"c-postTimes__posted icon-posted\" datetime=\"2025-07-24\" aria-label=\"\u516c\u958b\u65e5\">2025\u5e747\u670824\u65e5<\/time><\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t<\/a>\n<\/li>\n<li class=\"p-postList__item\">\n\t<a href=\"https:\/\/84office.jp\/en\/google-calendar-to-sheet-template\/\" class=\"p-postList__link\">\n\t\t<div class=\"p-postList__thumb c-postThumb\">\n\t<figure class=\"c-postThumb__figure\">\n\t\t<img decoding=\"async\" width=\"1024\" height=\"538\"  src=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/ab88c0708887b99cf51ee963a109a8c1-1024x538.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/ab88c0708887b99cf51ee963a109a8c1-1024x538.jpg 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/ab88c0708887b99cf51ee963a109a8c1-300x158.jpg 300w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/ab88c0708887b99cf51ee963a109a8c1-768x403.jpg 768w, https:\/\/84office.jp\/wp-content\/uploads\/2025\/07\/ab88c0708887b99cf51ee963a109a8c1.jpg 1200w\" sizes=\"auto, (min-width: 960px) 400px, 100vw\" loading=\"lazy\" >\t<\/figure>\n\t\t\t<span class=\"c-postThumb__cat icon-folder\" data-cat-id=\"12\">Google Sheets<\/span>\n\t<\/div>\n\t\t\t\t\t<div class=\"p-postList__body\">\n\t\t\t\t<h2 class=\"p-postList__title\">Ready-to-Use Google Calendar to Sheets Export Template| Google Sheets &amp; Apps Script<\/h2>\t\t\t\t\t\t\t\t<div class=\"p-postList__meta\">\n\t\t\t\t\t<div class=\"p-postList__times c-postTimes u-thin\">\n\t<time class=\"c-postTimes__posted icon-posted\" datetime=\"2025-07-23\" aria-label=\"\u516c\u958b\u65e5\">2025\u5e747\u670823\u65e5<\/time><\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t<\/a>\n<\/li>\n<\/ul><\/div>\n\n\n<p class=\"is-style-emboss_box has-swl-pale-02-background-color has-background\">Our company offers support for improving work efficiency through the use of Google Apps Script. <br>If you need assistance with Google Apps Script customization or error resolution, please feel free to contact us. <br>We are fully committed to supporting your business improvements.<br><br><a href=\"https:\/\/84office.jp\/contact\/\">Contact us here<br><\/a><\/p>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script (GAS) can help streamline your daily tasks, but have you ever found it inconvenient to run  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17043,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","_locale":"en_US","_original_post":"https:\/\/84office.jp\/?p=15656","footnotes":""},"categories":[12],"tags":[],"class_list":["post-17026","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12","en-US"],"_links":{"self":[{"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/posts\/17026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/comments?post=17026"}],"version-history":[{"count":4,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/posts\/17026\/revisions"}],"predecessor-version":[{"id":17052,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/posts\/17026\/revisions\/17052"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/media\/17043"}],"wp:attachment":[{"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/media?parent=17026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/categories?post=17026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/tags?post=17026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}