H hason Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-07 #1 如何在delphi5中實現象在excel中刪除行或列動作程序? 還有copy post 動作語句
X xupeih Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-11 #2 procedure TForm1.button1click(sender:tobject); var excel1:variant; begin excel1:=createoleobject('excel.application'); excel1.visible:=true; excel1.workbooks.open('文件名'); excel1.range['a:a'].select; //选定第一列 excel1.selection.delete; //剪切可用cut end;
procedure TForm1.button1click(sender:tobject); var excel1:variant; begin excel1:=createoleobject('excel.application'); excel1.visible:=true; excel1.workbooks.open('文件名'); excel1.range['a:a'].select; //选定第一列 excel1.selection.delete; //剪切可用cut end;
H hason Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-12 #3 我已經知道了 ,不過還是要感謝的。 這樣也行 sheet.rows['2:5'].delete;