Merge Cells

  • Thread starter Thread starter CarlainCerebroMode
  • Start date Start date
C

CarlainCerebroMode

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

oSheet.Range['A34:A35'].merge:=true;
 
Use Curly Brackets, double quotes and remove the true

oSheet.Range("A34:A35").Merge
 
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:
 
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)
 
Back
Top