{"id":401712,"date":"2022-01-31T19:00:00","date_gmt":"2022-01-31T16:00:00","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-create-a-custom-table-with-a-macro-in-microsoft-word\/"},"modified":"2022-01-31T19:00:00","modified_gmt":"2022-01-31T16:00:00","slug":"how-to-create-a-custom-table-with-a-macro-in-microsoft-word","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-create-a-custom-table-with-a-macro-in-microsoft-word\/","title":{"rendered":"#How to Create a Custom Table With a Macro in Microsoft Word"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a340911d8afe\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a340911d8afe\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-create-a-custom-table-with-a-macro-in-microsoft-word\/#What_Are_Macros_in_Microsoft_Word\" >What Are Macros in Microsoft Word?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-create-a-custom-table-with-a-macro-in-microsoft-word\/#Record_a_Macro_for_the_Custom_Table\" >Record a Macro for the Custom Table<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-create-a-custom-table-with-a-macro-in-microsoft-word\/#Create_the_Table\" >Create the Table<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-create-a-custom-table-with-a-macro-in-microsoft-word\/#Optionally_Customize_the_Table\" >Optionally Customize the Table<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-create-a-custom-table-with-a-macro-in-microsoft-word\/#Stop_Recording_the_Macro\" >Stop Recording the Macro<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-create-a-custom-table-with-a-macro-in-microsoft-word\/#Run_the_Macro_to_Insert_Your_Table\" >Run the Macro to Insert Your Table<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Create a Custom Table With a Macro in Microsoft Word&#8221;<\/strong><\/p>\n<div>\n<img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage alignnone wp-image-744183 size-full\" data-pagespeed-lazy-srcset=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2015\/07\/microsoft-word-logo-on-a-blue-background.jpg?width=398&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 400w, https:\/\/www.howtogeek.com\/wp-content\/uploads\/2015\/07\/microsoft-word-logo-on-a-blue-background.jpg?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 1200w\" sizes=\"auto, 400w, 1200w\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2015\/07\/microsoft-word-logo-on-a-blue-background.jpg?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Microsoft Word logo on a blue background\" width=\"1200\" height=\"675\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You know how time-consuming repetitive tasks can be. If you find yourself recreating the same table repeatedly in your Word documents, why not automate that job? Using a macro, you can make the table once and reuse it easily.<\/p>\n<p>Maybe you want to use the same table in different spots throughout a single document. Instead of copying and pasting the table multiple times, just run the macro. Or maybe you create regular business reports that sometimes include a table. You could use a template, but if you don\u2019t need the table each time, it takes extra effort to set it up when you <em>do<\/em> need it.<\/p>\n<p>Let\u2019s take a look at how easy it is to use a macro to create a custom table that you can reuse whenever you like.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"What_Are_Macros_in_Microsoft_Word\"><\/span>What Are Macros in Microsoft Word?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you\u2019ve never used <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/343965\/how-to-record-macros-and-automate-tiresome-tasks-in-microsoft-word\/\">macros in Microsoft Word, then you might be intimidated. However, macros are basically bits of programming created by the keys you press, words you type, or mouse actions you make. You simply record the macro and then run it when you want to use it. The programming is behind the scenes, so there\u2019s no reason to even view any code unless you want to.<\/p>\n<p>Before setting up your own macro, you might check out why you should be cautious of files you receive that contain macros created by others.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Record_a_Macro_for_the_Custom_Table\"><\/span>Record a Macro for the Custom Table<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To create a macro, make sure that you have <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/706392\/how-to-enable-and-disable-macros-in-microsoft-office-365\/\">macros enabled in Microsoft Office. You can start recording a macro by either pressing the Record Macro button in the Status Bar at the bottom of Word or by clicking Macros &gt; Record Macro in the ribbon on the View tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-777109\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/12\/RecordMacro-WordTableMacro.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Click or pick Record Macro\" width=\"650\" height=\"210\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>When the Record Macro window <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>ears, complete the details:<\/p>\n<ul>\n<li><strong>Macro Name<\/strong>: Give your macro a name you\u2019ll recognize (without spaces). We\u2019ll use CustomTable.<\/li>\n<li><strong>Assign Macro To<\/strong>: Choose if you\u2019d like to assign it to a button or a keyboard shortcut. You can also access and run your macros on the View tab by clicking Macros &gt; View Macros.<\/li>\n<li><strong>Store Macro In<\/strong>: By default, macros are stored in All Documents which allows you to reuse them in all Word documents. But you can select the current document from the drop-down list if you prefer.<\/li>\n<li><strong>Description<\/strong>: Optionally add a description.<\/li>\n<\/ul>\n<p>Click \u201cOK\u201d when you finish and are ready to create the table.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-777108\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/12\/RecordMacroDetails-WordTableMacro.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Complete the details for the macro\" width=\"578\" height=\"375\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Keep in mind that you\u2019ve already started recording, so you\u2019ll want to set up your table before doing anything else in Word. If necessary, you can pause the recording by going to the View tab and clicking \u201cPause Recording\u201d in the Macros drop-down box.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-777119 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/12\/PauseRecording-WordTableMacro.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Select Pause Recording\" width=\"150\" height=\"158\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Create_the_Table\"><\/span>Create the Table<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can now <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/234132\/how-to-create-a-table-using-the-keyboard-in-word\/\">create your table as you normally would by first heading to the Insert tab. Click the Table drop-down arrow and either drag to select the number of columns and rows or choose \u201cInsert Table,\u201d enter the column and row numbers, and click \u201cOK.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-777111\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/12\/InsertTable-WordTableMacro.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Insert a table in Word\" width=\"650\" height=\"298\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Optionally_Customize_the_Table\"><\/span>Optionally Customize the Table<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Next, you can do things like add a style to your table or enter <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/220829\/how-to-show-and-hide-row-and-column-headers-in-excel\/\">column or row headers. The goal is to include the customizations in your table that you will always want to reuse. After all, the point is to save time down the road!<\/p>\n<p>As an example, we inserted a four by four table with a banded table style, and column headers.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-777112\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/12\/CustomTable-WordTableMacro.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Custom table in Word\" width=\"650\" height=\"114\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<blockquote class=\"admonishment_tip\"><p><strong>Tip:<\/strong> Try not to over-customize your table. If you add too many fancy options, you may run into errors when you run the macro.<\/p><\/blockquote>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Stop_Recording_the_Macro\"><\/span>Stop Recording the Macro<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>When you finish creating your table, click the Stop Recording button in <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/220359\/how-to-use-the-status-bar-in-word\/\">the Status Bar or go to the View tab and click \u201cStop Recording\u201d in the Macros drop-down box.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-777113\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/12\/StopRecordingMacro-WordTableMacro.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Click or pick Stop Recording \" width=\"650\" height=\"208\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Run_the_Macro_to_Insert_Your_Table\"><\/span>Run the Macro to Insert Your Table<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>When it\u2019s time for you to use your custom table macro, place your cursor in your document where you want to insert the table.<\/p>\n<p>You can use the button you assigned or the keyboard shortcut you created. Or, you can go to the View tab, click the Macros drop-down arrow, and select \u201cView Macros.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-777116 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/12\/ViewMacros-WordTableMacro.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Select View Macros\" width=\"650\" height=\"191\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Select your macro in the list and click \u201cRun.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-777115\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/12\/RunMacro-WordTableMacro.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Select the macro and click Run\" width=\"650\" height=\"458\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Your table should then pop into your document in the spot you picked.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-777117\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/12\/TableInserted-WordTableMacro.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Table inserted from macro\" width=\"650\" height=\"304\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you\u2019re creating a document that includes a table you plan to reuse often, consider recording a macro so that you can insert the table easily in the future.<\/p>\n<p><strong>RELATED:<\/strong> <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/220359\/how-to-use-the-status-bar-in-word\/\"><strong><em>How to Use the Status Bar in Word<\/em><\/strong><\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/777092\/how-to-create-a-custom-table-with-a-macro-in-microsoft-word\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Create a Custom Table With a Macro in Microsoft Word&#8221; You know how time-consuming repetitive tasks can be. If you find yourself recreating the same table repeatedly in your Word documents, why not automate that job? Using a macro, you can make the table once and reuse it easily. Maybe you want to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":401713,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2015\/07\/microsoft-word-logo-on-a-blue-background.jpg?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-401712","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/401712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=401712"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/401712\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/401713"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=401712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=401712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=401712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}