#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Finding Merged Cells

How about a little macro:

Option Explicit
Sub testme()

Dim myCell As Range
Dim resp As Long

For Each myCell In ActiveSheet.UsedRange.Cells
If myCell.MergeCells Then
If myCell.Address = myCell.MergeArea(1).Address Then
resp = MsgBox(prompt:="found: " _
& myCell.MergeArea.Address & vbLf & _
"Continue looking", Buttons:=vbYesNo)
If resp = vbNo Then
Exit Sub
End If
End If
End If
Next myCell

End Sub

melissa wrote:

I have a 27 different spreadsheets from 13 different locations that I combine
into 1 huge spreadsheet. I run different macros & manipulate it quite
extensivley. Until recently my 1st macro worked great, now it stops because
someone merged some cells.

I need to find the merged cells in the huge spreadsheet so I can get that
person to unmerge the cells prior to sending it it me so my macro will work.
I NEED TO FIND THE MERGED CELLS - NOT JUST UNMERGE - that I can do. I need
this location to fix, but I do not know what location it is.

How do I find the merged cells?

Thanks
Melissa


--

Dave Peterson
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 122
Default Finding Merged Cells

I have a 27 different spreadsheets from 13 different locations that I combine
into 1 huge spreadsheet. I run different macros & manipulate it quite
extensivley. Until recently my 1st macro worked great, now it stops because
someone merged some cells.

I need to find the merged cells in the huge spreadsheet so I can get that
person to unmerge the cells prior to sending it it me so my macro will work.
I NEED TO FIND THE MERGED CELLS - NOT JUST UNMERGE - that I can do. I need
this location to fix, but I do not know what location it is.

How do I find the merged cells?

Thanks
Melissa
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autofit Merged cell Code is changing the format of my merged cells JB Excel Discussion (Misc queries) 0 August 20th 07 02:12 PM
Finding Merged Cells (Part 2) - Free 58k macro Olden Excel Discussion (Misc queries) 0 January 17th 07 11:24 AM
how do i link merged cells to a merged cell in another worksheet. ibbm Excel Worksheet Functions 3 April 27th 06 11:40 PM
Finding merged cells R D S Excel Discussion (Misc queries) 6 February 25th 05 07:59 PM
Sorting merged cellsHow do I sort merged cells not identically siz Laval Excel Worksheet Functions 1 November 3rd 04 09:40 PM


All times are GMT +1. The time now is 12:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"