VBA: How to detect whether two cells are currently merged

  • Thread starter Thread starter Lazer
  • Start date Start date
L

Lazer

Using VBA, how can I determine whether two cells (let's say F8 and F9
for example) are currently merged?

Thanks!
Elieze
 
Range("F8").merge.address<>Range("F8").address

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Sorry, should be

Range("F8").mergearea.address<>Range("F8").address


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

Bob Phillips said:
Range("F8").merge.address<>Range("F8").address

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Go to Excel HELP and type
mergecells property
In the Answer Wizard section.

TH

Cells(ActiveCell.End(xlDown).Row + 1, ActiveCell.Column).Select
 

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