{"id":3376,"date":"2018-11-22T19:30:09","date_gmt":"2018-11-22T19:30:09","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=3376"},"modified":"2024-03-28T11:36:53","modified_gmt":"2024-03-28T11:36:53","slug":"shortcut-keys-for-merge-and-center","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/","title":{"rendered":"Merge and Center Shortcut in Excel"},"content":{"rendered":"\n

There are a few ways to use the Merge & Center<\/strong> command in Excel.<\/p>\n\n\n\n

Accessing commands using a keyboard<\/h2>\n\n\n\n

In the first method, you can use access the Merge & Center<\/strong>, or any other command from the Ribbon, using a keyboard.<\/p>\n\n\n\n

If you press Left Alt<\/strong>, Excel will display letters on the ribbon to select one of the tabs or icons in the Quick Access Toolbar<\/a>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

If you press h<\/strong>, the program will choose the Home<\/strong> tab. You have to do it, even if you are currently inside this tab.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

You have the tab selected. Now, press m<\/strong> to access the Merge<\/strong> options list.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

The last letter is by pressing the letter c<\/strong>.<\/p>\n\n\n\n

The full shortcut is Left Alt >> h >> m >> c<\/strong> pressed sequentially.<\/p>\n\n\n\n

Adding a command to Quick Access Toolbar<\/h2>\n\n\n\n

Instead of using this long shortcut, that\u2019s not only hard to insert, but also hard to remember, there is another, faster method using a very similar way.<\/p>\n\n\n\n

First, add a command to Quick Access Toolbar.<\/p>\n\n\n\n

Hover the mouse cursor over the Merge & Center<\/strong> command and use the right mouse button. Now, click Add to Quick Access Toolbar<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

You can notice that a new icon appeared on the Quick Access Toolbar<\/a>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

When you press Left Alt<\/strong>, the command (in my case) is at the number 8<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Now, Instead of four steps, you can do it in two.<\/p>\n\n\n\n

Left Alt >> 8<\/strong>.<\/p>\n\n\n\n

Assigning a keyboard shortcut to a macro<\/h2>\n\n\n\n

So far, we were accessing the command using keyboard buttons pressed sequentially. But you can also record a macro<\/a> that will use the command and apply a keyboard shortcut to it.<\/p>\n\n\n\n

You can record a new macro by clicking an icon in the bottom-left corner.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

The second way to record a macro is by clicking View >> Macros >> Macros >> Record Macro\u2026<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

A new window will appear. Name the macro.<\/p>\n\n\n\n

Click inside the box under the Shortcut key:<\/strong> and press Shift + q<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

This will assign Ctrl + Shift + q<\/strong> to our macro.<\/p>\n\n\n\n

Click OK<\/strong>.<\/p>\n\n\n\n

Now, click the Merge & Center<\/strong> command and stop the macro.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Click View >> Macros >> Macros<\/strong>.<\/p>\n\n\n\n

A new window will appear. Select the name of the macro and click Edit<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

This is what our code looks like.<\/p>\n\n\n\n

Sub MargeAndCenter()\n'\n' MargeAndCenter Macro\n'\n' Keyboard Shortcut: Ctrl+Shift+Q\n'\n    With Selection\n        .HorizontalAlignment = xlCenter\n        .VerticalAlignment = xlBottom\n        .WrapText = False\n        .Orientation = 0\n        .AddIndent = False\n        .IndentLevel = 0\n        .ShrinkToFit = False\n        .ReadingOrder = xlContext\n        .MergeCells = False\n    End With\n    Selection.Merge\nEnd Sub<\/pre>\n\n\n\n

The macro sets a few things inside the code. But we can keep it as it is.<\/p>\n\n\n\n

You can use it by selecting cells and then pressing Ctrl + Shift + Q<\/strong>.<\/p>\n\n\n\n

The disadvantage of this method is that with a macro, the Ctrl + Z<\/strong> shortcut (undo changes) doesn\u2019t work. But, if you can, you can create the second macro, with a different keyboard shortcut and Unmerge Cells<\/a> <\/strong>command, which you can find in the same place as the Merge & Center <\/strong>command.<\/p>\n","protected":false},"excerpt":{"rendered":"

There are a few ways to use the Merge & Center command in Excel. Accessing commands using a keyboard In the first method,…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[190],"yoast_head":"\nMerge and Center Shortcut in Excel<\/title>\n<meta name=\"description\" content=\"mand using the Ribbon and Quick Access Toolbar. Another way is to assign a keyboard shortcut to a macro that performs the Merge & Center command.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Merge and Center Shortcut in Excel\" \/>\n<meta property=\"og:description\" content=\"mand using the Ribbon and Quick Access Toolbar. Another way is to assign a keyboard shortcut to a macro that performs the Merge & Center command.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-22T19:30:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-28T11:36:53+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/11\/accessing-ribbon-via-keyboard-shortcut.png\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"Merge and Center Shortcut in Excel\",\"datePublished\":\"2018-11-22T19:30:09+00:00\",\"dateModified\":\"2024-03-28T11:36:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/\"},\"wordCount\":470,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/11\/accessing-ribbon-via-keyboard-shortcut.png\",\"keywords\":[\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/\",\"name\":\"Merge and Center Shortcut in Excel\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/11\/accessing-ribbon-via-keyboard-shortcut.png\",\"datePublished\":\"2018-11-22T19:30:09+00:00\",\"dateModified\":\"2024-03-28T11:36:53+00:00\",\"description\":\"mand using the Ribbon and Quick Access Toolbar. Another way is to assign a keyboard shortcut to a macro that performs the Merge & Center command.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/11\/accessing-ribbon-via-keyboard-shortcut.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/11\/accessing-ribbon-via-keyboard-shortcut.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Merge and Center Shortcut in Excel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Merge and Center Shortcut in Excel","description":"mand using the Ribbon and Quick Access Toolbar. Another way is to assign a keyboard shortcut to a macro that performs the Merge & Center command.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/","og_locale":"en_US","og_type":"article","og_title":"Merge and Center Shortcut in Excel","og_description":"mand using the Ribbon and Quick Access Toolbar. Another way is to assign a keyboard shortcut to a macro that performs the Merge & Center command.","og_url":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/","article_published_time":"2018-11-22T19:30:09+00:00","article_modified_time":"2024-03-28T11:36:53+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/11\/accessing-ribbon-via-keyboard-shortcut.png"}],"author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"Merge and Center Shortcut in Excel","datePublished":"2018-11-22T19:30:09+00:00","dateModified":"2024-03-28T11:36:53+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/"},"wordCount":470,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/11\/accessing-ribbon-via-keyboard-shortcut.png","keywords":["pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/","url":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/","name":"Merge and Center Shortcut in Excel","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/11\/accessing-ribbon-via-keyboard-shortcut.png","datePublished":"2018-11-22T19:30:09+00:00","dateModified":"2024-03-28T11:36:53+00:00","description":"mand using the Ribbon and Quick Access Toolbar. Another way is to assign a keyboard shortcut to a macro that performs the Merge & Center command.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/11\/accessing-ribbon-via-keyboard-shortcut.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/11\/accessing-ribbon-via-keyboard-shortcut.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/shortcut-keys-for-merge-and-center\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Merge and Center Shortcut in Excel"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/3376"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=3376"}],"version-history":[{"count":7,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/3376\/revisions"}],"predecessor-version":[{"id":17292,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/3376\/revisions\/17292"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=3376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=3376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=3376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}