Alaska Software Inc. - combine cells in excel
Username: Password:
AuthorTopic: combine cells in excel
Ernesto Avedillocombine cells in excel
on Wed, 11 Jun 2008 15:37:21 +0200
Hello to everybody,

I need the method to combine cells working with the excel activex. Any Idea?

Best Regards
Ernesto Avedillo
Frans Vermeulen Re: combine cells in excel
on Wed, 11 Jun 2008 15:59:53 +0200
Ernesto,

oExcel:Workbooks:Open("BlahBlahBlah.Xls")
oWorkSheet             :=oExcel:Workbooks:Item(1):Sheets:Item(1)
oWorkSheet:Select()

oRange                 :=oExcel:Range("A3:G3")
oRange:Select()

oRange:=oExcel:Selection()
oRange:Merge()

HTH,
Frans Vermeulen

> Hello to everybody,
> 
> I need the method to combine cells working with the excel activex. Any Idea?
> 
> Best Regards
> Ernesto Avedillo 
> 
>
Ernesto AvedilloRe: combine cells in excel
on Wed, 11 Jun 2008 16:15:10 +0200
Thank you very much.
I was crazy looking for this method.
Ernesto

"Frans Vermeulen" <fransv@sluyter-routing.nl> escribi en el mensaje 
news:20080611155953.87241740.fransv@sluyter-routing.nl...
> Ernesto,
>
> oExcel:Workbooks:Open("BlahBlahBlah.Xls")
> oWorkSheet             :=oExcel:Workbooks:Item(1):Sheets:Item(1)
> oWorkSheet:Select()
>
> oRange                 :=oExcel:Range("A3:G3")
> oRange:Select()
>
> oRange:=oExcel:Selection()
> oRange:Merge()
>
> HTH,
> Frans Vermeulen
>
>> Hello to everybody,
>>
>> I need the method to combine cells working with the excel activex. Any 
>> Idea?
>>
>> Best Regards
>> Ernesto Avedillo
>>
>>
Paul Hill Re: combine cells in excel
on Wed, 11 Jun 2008 15:28:04 +0100
Ernesto Avedillo wrote:
> Thank you very much.
> I was crazy looking for this method.
> Ernesto

The easiest way to work out how to do things in Excel is to record a 
macro and look at the resulting VB code.  It's normally easy ro 
translate to xBase.

Paul