Merge Cells

C

CarlainCerebroMode

I Just want to know how to merge via code two cells:
This doesn't work:

oSheet.Range['A34:A35'].merge:=true;
 
R

RonaldoOneNil

Use Curly Brackets, double quotes and remove the true

oSheet.Range("A34:A35").Merge
 
F

feng Xiansheng

F

feng Xiansheng

if you want to merge a1 and a2 then:
eWS.Cells.get_Range("A1", "B1").MergeCells = true;
eWS.Cells[1, 1] = "str";(is A1,B1)
I Just want to know how to merge via code two cells:
This does not work:

oSheet.Range['A34:A35'].merge:=true;
On Monday, April 12, 2010 6:43 AM RonaldoOneNil wrote:
Use Curly Brackets, double quotes and remove the true

oSheet.Range("A34:A35").Merge



"CarlainCerebroMode" wrote:
 
F

feng Xiansheng

if you want to merge a1 and a2 ,then
eWS.Cells.get_Range("A1", "B1").MergeCells = true;
eWS.Cells[1, 1] = "str";(is A1,B1)
I Just want to know how to merge via code two cells:
This does not work:

oSheet.Range['A34:A35'].merge:=true;
On Monday, April 12, 2010 6:43 AM RonaldoOneNil wrote:
Use Curly Brackets, double quotes and remove the true

oSheet.Range("A34:A35").Merge



"CarlainCerebroMode" wrote:
eWS.Cells.get_Range("A1", "B1").MergeCells = true;

eWS.Cells[1, 1] = "str";(is A1,B1)
 

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