尝试在VBA中调用windows API
一、 制作好窗口
添加sub CommandButton1_Click()事件处理过程:
在该事件处理过程中预定调用execProcedure “explorer http://www.163.com”, 以后可能会修改它。
二、 在工程中插入模块1
三、 查阅windows API参考手册,从中查阅winexec
将其VB声明复制到模块1中
四、在execProcedure过程中调用winexec
尝试在VBA中调用windows API
一、 制作好窗口
添加sub CommandButton1_Click()事件处理过程:
在该事件处理过程中预定调用execProcedure “explorer http://www.163.com”, 以后可能会修改它。
二、 在工程中插入模块1
三、 查阅windows API参考手册,从中查阅winexec
将其VB声明复制到模块1中
四、在execProcedure过程中调用winexec
相关文章: