Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用VB.NET以编程方式停止并重新运行Excel宏?_.net_Vb.net_Excel - Fatal编程技术网

如何使用VB.NET以编程方式停止并重新运行Excel宏?

如何使用VB.NET以编程方式停止并重新运行Excel宏?,.net,vb.net,excel,.net,Vb.net,Excel,我有一个Excel,其中sheet3有一个宏,用于计算sheet1和sheet2中的数据,并填充sheet3中的数据 通过编程,我尝试填充sheet1和sheet2。对于大量记录,当我填充sheet1和sheet2中每个单元格的数据时,宏在Excel后面运行 是否有编程方法停止Excel中的宏,并在填充数据后运行相同的宏?查看Excel应用程序的EnableEvents PropertyTanks@TimWilliams。它很好用。

我有一个Excel,其中sheet3有一个宏,用于计算sheet1和sheet2中的数据,并填充sheet3中的数据

通过编程,我尝试填充sheet1和sheet2。对于大量记录,当我填充sheet1和sheet2中每个单元格的数据时,宏在Excel后面运行


是否有编程方法停止Excel中的宏,并在填充数据后运行相同的宏?

查看Excel应用程序的EnableEvents PropertyTanks@TimWilliams。它很好用。