|
发表于 2016-1-10 13:32:47
|
显示全部楼层
error = Excel_WorksheetActivate (ExcelWorksheetHandle, NULL);
error = CA_VariantSetCString (&MyCellRangeV, "A1:B5");
error = Excel_WorksheetGetRange (ExcelWorksheetHandle, NULL,MyCellRangeV , CA_DEFAULT_VAL, &ExcelRangeHandle);
error = Excel_RangeMerge (ExcelRangeHandle, &err, CA_DEFAULT_VAL);
//error = Excel_RangeMerge (ExcelRangeHandle, &err, CA_VariantBool (VTRUE));
//error = Excel_RangeMerge (ExcelRangeHandle, &err, CA_VariantBool (VFALSE));
帮助文档
expression.Merge(Across)
expression 必需。该表达式返回一个 Range 对象。
Across Variant 类型,可选。如果该值为 True,则将指定区域内的每一行合并为一个合并单元格。默认值为 False。
|
|