Cells.Merge with its immediatly bottom cell

S

Sparkle

How can I merge a cell with its immediatly bottom cell (I am writing a Word
2003 Automation Add-in in c#)

object wdLine=Word.WdUnits.wdLine;
object toRowCount=2

tableCell = myTable.Rows[1].Cells[1];
Word.Range rang=tableCell.Range;
rang.Move(ref wdLine, ref toRowCount);
rang.Cells.Merge();

This gives a Bad Parameter.


Any Help?
Thanks
 

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

Top