在程序mfc里怎样运行excel的宏???
解决方案 »
- sql server 2008 对表中的数据进行排序问题
- 有个关于网络编程的错误,麻烦帮小弟看看!
- deviceicontrol 返回1 表示什么? 急!!!
- 请问在vc中如向用vfp写的dll?
- 如何用“打开”文件对话框选择多个目录?
- 为什么我的Edit控件,不能多行编辑,我已经选上了Multiline属性
- 控件问题
- 入门级问题----CListBox类的使用,如何取得和修改item的值?
- VC和VC++是一回事还是两回事?
- 不可思议!!!!不可思议,一个关于数据采集的源程序费解!!!<仅有的171分都给你!!!>
- 模板类中成员函数delete类型为模板类型Type的指针,报警告:删除指向不完整“Type”类型的指针;没有调用析构函数
- 2006年4月份MVP申请活动开始了!截止日期为2005年12月29日。需要申请和连任的网友,赶快行动起来!
Excel的automation没做过。word里面我通常是用MFC来模拟宏生成的VBA代码来模拟宏的行为。或者你可以用_Document类的Run来调用宏,当你打开一个文件使用Add时也可以指定宏,在word的automation中,还可以用FormField类为一个窗体域指定宏,用它的
CString GetEntryMacro();
void SetEntryMacro(LPCTSTR lpszNewValue);
函数。
This article illustrates by example how you can create an MFC Automation ...
to place the list of macro //names in the list box. if(sProgID.Find("EXCEL. ...
support.microsoft.com/?kbid=274680 - Similar pages How To Add and Run a VBA Macro Using Automation from MFC
How To Add and Run a VBA Macro Using Automation from MFC ... Click 'Macro' to
start Excel"); AfxMessageBox("Click the EndXL button to remove Excel,\n" "Then ...
support.microsoft.com/support/KB/Articles/Q194/9/06.asp - Similar pages