Z Zhejiang_Knight Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-06 #1 俺有一电子表格要做到以下要求: 将A单元格和B单元格的内容相加,将值传给B单元格. 在Excel2000中有可能做到吗? 如果能做到,怎么做? 望不吝赐教.
A angleli1981 Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-06 #3 先将了B的内容Copy到C,然后将B=sum(a,c)就为OK那
Z Zhejiang_Knight Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-06 #4 to angleli1981: 不可以用这种办法!如果有许多单元格的话,那是你让电脑干活还是电脑让你干活?
Z Zhejiang_Knight Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-06 #6 to tuer: 怎么玩?好人做到底,送佛送到西.
B beamgx Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-06 #7 DELPHI6/7下: 先添加控件ExcelApplication1,ExcelWorkbook1,ExcelWorksheet1 ExcelApplication1.Workbooks.Open('c:/your.xls',NULL,false,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0); ExcelWorkbook1.ConnectTo(ExcelApplication1.Workbooks[1]); ExcelWorksheet1.ConnectTo(ExcelWorkbook1.Sheets[1] as _WorkSheet); ExcelWorksheet1.Cells.Item[1,2 ]:=ExcelWorksheet1.Cells.Item[1,1 ]+ExcelWorksheet1.Cells.Item[1,2 ]; Excelworkbook1.Save; ExcelApplication1.Workbooks.Close(0);
DELPHI6/7下: 先添加控件ExcelApplication1,ExcelWorkbook1,ExcelWorksheet1 ExcelApplication1.Workbooks.Open('c:/your.xls',NULL,false,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0); ExcelWorkbook1.ConnectTo(ExcelApplication1.Workbooks[1]); ExcelWorksheet1.ConnectTo(ExcelWorkbook1.Sheets[1] as _WorkSheet); ExcelWorksheet1.Cells.Item[1,2 ]:=ExcelWorksheet1.Cells.Item[1,1 ]+ExcelWorksheet1.Cells.Item[1,2 ]; Excelworkbook1.Save; ExcelApplication1.Workbooks.Close(0);
T tuer Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-09 #9 如此: 选择execl工具栏上的"宏",拉开子菜单,选择"录制新宏",按"确定"后开始,此后你所有的动作 将被宏记下来并做成个小程序:你将A单元格和B单元格的内容相加,将值传给c单元格,然后 复制c单元格,再用"编辑"下的"选择性粘贴"只粘贴数值到B单元格,ok完成,停止宏录制,打开 “窗体”工具栏,选一个“按钮”放上,右键点“按钮”,将录制的宏指定给它 以后,你只需按“按钮”,它将自动完成 A+B→B 的操作
如此: 选择execl工具栏上的"宏",拉开子菜单,选择"录制新宏",按"确定"后开始,此后你所有的动作 将被宏记下来并做成个小程序:你将A单元格和B单元格的内容相加,将值传给c单元格,然后 复制c单元格,再用"编辑"下的"选择性粘贴"只粘贴数值到B单元格,ok完成,停止宏录制,打开 “窗体”工具栏,选一个“按钮”放上,右键点“按钮”,将录制的宏指定给它 以后,你只需按“按钮”,它将自动完成 A+B→B 的操作