Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default 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
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
How to find non-blank cell values "hidden" under merged regions? david.karr Excel Discussion (Misc queries) 7 April 7th 07 11:35 PM
Find Merged Cells Mike Rogers Excel Discussion (Misc queries) 5 December 6th 06 12: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
.find with merged cell not working Sunil Patel Excel Programming 5 July 3rd 05 08:11 PM


All times are GMT +1. The time now is 01:41 PM.

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"