Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
XL 2003
Simple way to test for existence of any merged cells in worksheet. Must it be a cell by cell evaluation OR [Each myCell in myRange] is there a "merged state" that is reflected on a Sheet basis? [ i.e. like Activesheet.UsedRange.MergeCells] EagleOne |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi EagleOne
search in the VBA-Help for MergeCells Hth Carlo " wrote: XL 2003 Simple way to test for existence of any merged cells in worksheet. Must it be a cell by cell evaluation OR [Each myCell in myRange] is there a "merged state" that is reflected on a Sheet basis? [ i.e. like Activesheet.UsedRange.MergeCells] EagleOne |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Merged Cells in Worksheet, Test for
Ultimately I found a way to determine, on a Sheet-level basis if there are merged cells on the sheet somewhere (without having to examine each cell in the used range). This is important, because it saves time on very large worksheets. NOTE: this works in XL 2003, not sure for older versions. Sub SheetLevelTestForMergedCells() If Cells.MergeCells = False Then MsgBox "No Merged Cells on this Sheet!" Else MsgBox "Merged Cells Found!" End If End Sub For some reason, neither Cells.MergeCells = True nor Cells.MergeCells = Null works in the reverse. BTW, if someone finds inconsistencies please post back. wrote: XL 2003 Simple way to test for existence of any merged cells in worksheet. Must it be a cell by cell evaluation OR [Each myCell in myRange] is there a "merged state" that is reflected on a Sheet basis? [ i.e. like Activesheet.UsedRange.MergeCells] EagleOne |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculating only non-empty cells... | Excel Worksheet Functions | |||
Copying a column of single cells into a column of merged cells | Excel Discussion (Misc queries) | |||
How can I have formatting toolbar active for the unprotected(unlocked) cells of the protected worksheet??? | Excel Discussion (Misc queries) | |||
checking that cells have a value before the workbook will close | Excel Worksheet Functions | |||
Linking cells in a worksheet to other worksheets in a workbook | Excel Discussion (Misc queries) |