Determine start column/ end column of Merged Cell

  • Thread starter Thread starter jC!
  • Start date Start date
J

jC!

hi all,

any advise on how to determine the start Column and end Column of a
merged Cell using VBA in Excel 2003 is mostly appreciated.

ie A3/B3/C3/D3/E3/F3 are merged therefore
Start = 1 (for A)
End = 6 (for F)

thanking for your help.

cheers...

....jurgenC!
 
Hi JurgenC!
Dim MergeAr As Range
Set MergeAr = Range("C10").MergeArea
MsgBox MergeAr.Column & vbCrLf & MergeAr.Column + MergeAr.Columns.Count

HTH
Cordially
Pascal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top