excel中用delphi如何取得rang(选定区域)的列和行? 如题可能类似于, sheet.rang.firstrow, sheet.rang.firstcol ,sheet.rang.lastrow. 可是具体怎么样写呢?过路在侠告知一声哦! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在delphi中操作Excel应该要用到olecontain吧,有点难度 sheet.Activate;//先要你要操作的Sheet 没有找到好的方法ShowMessage('开始行 '+ Selection.Row);ShowMessage('总行数 '+ Selection.Rows.Count);ShowMessage('开始列 '+ Selection.Column);ShowMessage('总列数 '+ Selection.Columns.Count); 要定义一个变量为ExcelApplicationvar App: Variant;beginApp := CreateOleObject('....');......sheet.Activate;//先要你要操作的Sheet 没有找到好的方法 ShowMessage('开始行 '+ App.Selection.Row); ShowMessage('总行数 '+ App.Selection.Rows.Count); ShowMessage('开始列 '+ App.Selection.Column); ShowMessage('总列数 '+ App.Selection.Columns.Count); end; 关于RichEdit控件的无理要求! 难题:急!!关于windows登录的delphi程序实现? 一个简单的通讯问题 各位高手请问如何将THandle 类型 转换为TForm类型? 多层开发中的问题 100分求oracle8i密码 如何根据一个字符串变量打开一个窗口,有那位高手帮我解决! 急请问f1book报表activeX组件怎样使用 再delphi中的文本文件,要把指向文本的末尾该怎么办 delphi的winsock.pas中定义了sockaddr_in,如何读其中的ip地址和断口号?它的声明内附 mwy654321 兄弟领分 关于delphi中adoquery删除的问题
ShowMessage('开始行 '+ Selection.Row);
ShowMessage('总行数 '+ Selection.Rows.Count);
ShowMessage('开始列 '+ Selection.Column);
ShowMessage('总列数 '+ Selection.Columns.Count);
var
App: Variant;
begin
App := CreateOleObject('....');
......
sheet.Activate;//先要你要操作的Sheet 没有找到好的方法
ShowMessage('开始行 '+ App.Selection.Row);
ShowMessage('总行数 '+ App.Selection.Rows.Count);
ShowMessage('开始列 '+ App.Selection.Column);
ShowMessage('总列数 '+ App.Selection.Columns.Count);
end;