Oct 8, 2002 #1 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!!
Hello... Does anyone have an example of how to Merge 2 cells together using OLE2? Thanks In Advance!!
Oct 9, 2002 #2 sfvb Programmer Nov 25, 2001 399 US 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); Upvote 0 Downvote
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);