B blueskyaaa Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-17 #1 请问如何在Delphi中根据需要合并Excel中的单元格?很急!请各位帮帮忙!
M mild Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-17 #2 var ExcelApp,Mysheet: Variant; ExcelApp := CreateOleObject( 'Excel.Application' ); ExcelApp.WorkBooks.Open( 'C:/Excel/Demo.xls' ); Mysheet:= MyWorkbook.sheets[1]; Mysheet.Range['A4:E4'].MergeCells:=True;
var ExcelApp,Mysheet: Variant; ExcelApp := CreateOleObject( 'Excel.Application' ); ExcelApp.WorkBooks.Open( 'C:/Excel/Demo.xls' ); Mysheet:= MyWorkbook.sheets[1]; Mysheet.Range['A4:E4'].MergeCells:=True;