Is there a keyboard shortcut for merge cells?

calindor

New Member
Joined
Feb 28, 2003
Messages
13
I've looked through help and done a bit of a web search and can't find out if there is a keyboard shortcut for merging cells in excel?

A little help, anyone? Thanks!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
You could try settin up the merge function as a macro and then assign your own key shortcut.
 
Upvote 0
Or if you need to do this multiple times at once, then do one merge, and then use F4 to repeat your last action.
 
Upvote 0
Code:
Sub MyMerge()
    On Error Resume Next
    Selection.Merge
End Sub

Sub TurnOnMyMerge()
    Application.MacroOptions "MyMerge", ShortcutKey:="M"
End Sub

Sub TurnOffMyMerge()
    Application.MacroOptions "MyMerge", ShortcutKey:=""
End Sub

Execute the "TurnOnMyMerge" macro, and that will make Control Shift M the shortcut for merge.
 
Upvote 0
I was doing that key sequence, Andrew.. it just seemed like too much to go through. You and I think alike.

Thanks for the macro idea, Byrne, and thanks for the macro Juan!

I don't know why I didn't think of F4 before, Tommygun!

Thanks for all your help, people!

Maybe you can help me with my next problem... see next thread. :)
 
Upvote 0
Great tips -- especially F4 -- thanks!

But there is a built-in excel keyboard shortcut for merge cells: Alt-Enter
 
Upvote 0
Great tips -- especially F4 -- thanks!

But there is a built-in excel keyboard shortcut for merge cells: Alt-Enter

Woops -- Alt-Enter is "repeat last action", just like F4. I thought it was merge since my last action was merging cells :)
 
Upvote 0
Merged cells should be avoided, if possible, because they lead to all kinds of problems for data processing.

Use "Center Across Selection" instead
 
Upvote 0

Forum statistics

Threads
1,214,416
Messages
6,119,384
Members
448,889
Latest member
TS_711

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top