detect merged cell

kobiianardo

New Member
Joined
May 13, 2011
Messages
4
hello, i'm having some speed issues with excels

i have 500 excels files and each has 2-10 sheets. i want to, on a separate sheet, have flags up for which sheet has merged cells (maybe 30-40 of them do in some weird places).


is there a fast way to do this? i only need to record yes/no for each sheet.

right now i'm scanning by the cells
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hello kobiianardo,

Here is quick method of checking for merged cells on each worksheet.
Code:
Sub FindMergedCells()

  Dim Rng As Range
  Dim T As Variant
  Dim Wks As Worksheet
  
    For Each Wks In Worksheets
      T = Wks.UsedRange.MergeCells
      If IsNull(T) Or T = True Then
        'Code to log the sheet name goes here
      End If
    Next Wks
       
End Sub
Sincerely,
Leith Ross
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,767
Members
452,940
Latest member
rootytrip

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