Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Merge Cells using OLE2

Status
Not open for further replies.

krindler

Programmer
Jul 16, 2002
39
US
Hello...

Does anyone have an example of how to Merge 2 cells together using OLE2?

Thanks In Advance!!
 
Here's one way to do it.

Code:
   args := OLE2.CREATE_ARGLIST; 
   OLE2.ADD_ARG(args, 'D54:E54');
   Range := OLE2.GET_OBJ_PROPERTY(Worksheet, 'Range', args);
   OLE2.DESTROY_ARGLIST(args);

   OLE2.INVOKE(Range, 'Merge');  
   OLE2.RELEASE_OBJ(Range);

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top