To totally unlock this section you need to Log-in
Login
Do you know how to find and select all merged cells in Excel? Here is the cool tricky ways to identify and select all merged cells in a selection or range in Microsoft Excel 2007 and 2010 quickly.
You can identify and select all merged cells in active worksheet by Find command with following steps:
1. Click the Home > Find & Select > Find to open the Find and Replace dialog box. You can also open the Find and Replace dialog box with pressing the Ctrl + F keys.
2. Click the Format button in the dialog box, (If you can't find out the Format button, please click the Options button to expand the dialog.) see screenshot:
In the popping up Find Format dialog box, only check the Merge Cells option in the Text control section under Alignment tab, and click OK.
Now you go back to the Find and Replace dialog box, click Find All button. All merged cells are listed at the bottom of this dialog box. Select all finding results with holding down the Shift key.
Now all merged cells in active sheet are selected when you select all finding results. See screenshot:
Tips: If you want to only identify, find, and select merged cells in a selection, you need to select the range first.
Identify all merged cells with VBA code
Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window. Click Insert > Module, and paste the following macro in the Module Window.
Sub FindMergedcells() 'updateby Extendoffice 20160106 Dim x As Range For Each x In ActiveSheet.UsedRange If x.MergeCells Then x.Interior.ColorIndex = 8 End If Next End Sub
Press the F5 key to run this macro. All merged cells in active worksheet are identified and highlighted, see screenshot:
Identify and list all merged cells
Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.
Click Insert > Module, and paste the following macro in the Module Window.
Sub ListMergedcells() 'updateby Extendoffice 20160106 Dim x As Range Dim sMsg As String sMsg = "" For Each x In ActiveSheet.UsedRange If x.MergeCells Then If sMsg = "" Then sMsg = "Merged cells:" & vbCr End If sMsg = sMsg & Replace(x.Address, "$", "") & vbCr End If Next If sMsg = "" Then sMsg = "No merged cells." End If MsgBox sMsg End Sub
Press the F5 key to run this macro, all merged cells are listed in a popping up dialog box. See screenshot: