| 发表于:2007-03-27 17:39:321楼 得分:0 |
macro1是创建的宏名, hello是给macro1的参数 dim oexcel as excel.application dim oworkbook as excel.workbook set oexcel = new excel.application oexcel.visible = true set oworkbook = oexcel.workbooks.open( "c:\macrotest.xls ") oworkbook.application.run "macro1 ", "hello " oworkbook.save oexcel.quit | | |
|