![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Pls.... help
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
You can right click on the suspected area, then choose Format Cells. Go to the Alignment Tab, and if there is a tick in the Merge Cells box then they're merged
|
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
The MergeCells property will tell you whether there are any merged cells in a range.
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Dog Beach, Florida. Yeaahh!
Posts: 4,038
|
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Dog Beach, Florida. Yeaahh!
Posts: 4,038
|
When you click on any of the suspected cells, if they are merged, the cell outline will include all of them. If you have your grid turned on, the grid will show you which cells are merged.
|
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
The function below will return true or false if any cells are merged within the range you want to check: -
Public Function IsItMerged(myRange As Range) As Boolean Dim c As Range For Each c In myRange If c.MergeCells Then IsItMerged = True Exit Function End If Next c IsItMerged = False End Function |
|
|
|
|
|
#7 |
|
Guest
Posts: n/a
|
Thx all, Thx Mudface!!! That's the answer
Even though i haven't state the question clearly, you can get what i mean!! Great!! |
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|