Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks to all! You guys are the greatest!
-- Dr. M "bdr200" wrote: Hi, This code checks the activecell to see if it is merged. Sub TestForMergedCell() Dim rng As Range Set rng = ActiveCell If rng.MergeCells = True Then MsgBox "Activecell is merged." Else MsgBox "Activecell is NOT merged." End If End Sub "Dr. M" wrote: Hi all! I am looking to do something like this: If mergecells=True (then do one thing) Else (do something else) Endif But I cannot figure out how to get VB to work with my logic. Any ideas? Thank you! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
=if() statement -- test for any text in cell | Excel Discussion (Misc queries) | |||
Autofit Merged cell Code is changing the format of my merged cells | Excel Discussion (Misc queries) | |||
Merged Cells in Worksheet, Test for | Excel Discussion (Misc queries) | |||
how do i link merged cells to a merged cell in another worksheet. | Excel Worksheet Functions | |||
How can one test against merged cells in VB.NET? | Excel Programming |