Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find a merged cell
Hi All
How can I programmatically find and select a single merged cell in a spreadsheet. The sheet doesnt have a continuous area but there is only one merged cell in a variable row from A:N. Many Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find a merged cell
Sub findmerge()
For Each r In ActiveSheet.UsedRange If r.MergeCells = True Then r.Select Exit Sub End If Next End Sub -- Gary''s Student - gsnu200846 "Jimbob" wrote: Hi All How can I programmatically find and select a single merged cell in a spreadsheet. The sheet doesnt have a continuous area but there is only one merged cell in a variable row from A:N. Many Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find a merged cell
Thanks - it works a treat and is much more elegant than my "creations".
You guys are so good and quick in responding. What a service. "Gary''s Student" wrote: Sub findmerge() For Each r In ActiveSheet.UsedRange If r.MergeCells = True Then r.Select Exit Sub End If Next End Sub -- Gary''s Student - gsnu200846 "Jimbob" wrote: Hi All How can I programmatically find and select a single merged cell in a spreadsheet. The sheet doesnt have a continuous area but there is only one merged cell in a variable row from A:N. Many Thanks |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find a merged cell
Responding is fun, try it.
-- Gary''s Student - gsnu200846 "Jimbob" wrote: Thanks - it works a treat and is much more elegant than my "creations". You guys are so good and quick in responding. What a service. "Gary''s Student" wrote: Sub findmerge() For Each r In ActiveSheet.UsedRange If r.MergeCells = True Then r.Select Exit Sub End If Next End Sub -- Gary''s Student - gsnu200846 "Jimbob" wrote: Hi All How can I programmatically find and select a single merged cell in a spreadsheet. The sheet doesnt have a continuous area but there is only one merged cell in a variable row from A:N. Many Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Autofit Merged cell Code is changing the format of my merged cells | Excel Discussion (Misc queries) | |||
How to find non-blank cell values "hidden" under merged regions? | Excel Discussion (Misc queries) | |||
Find Merged Cells | Excel Discussion (Misc queries) | |||
how do i link merged cells to a merged cell in another worksheet. | Excel Worksheet Functions | |||
.find with merged cell not working | Excel Programming |