Excel 2016获得运行excel aaplication的意义 [英] Excel 2016 get intance of running excel aaplication

查看:151
本文介绍了Excel 2016获得运行excel aaplication的意义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

过去我使用下一个代码来访问正在运行的Excel应用程序

In the past i used the next code to get acces to the running excel application

using  Microsoft.Office.Interop.Excel;

using Microsoft.Office.Interop.Excel;

var ExApp =(Microsoft.Office.Interop.Excel。 应用程序 Marshal 。GetActiveObject( " Excel.Application" );

varExApp = (Microsoft.Office.Interop.Excel.Application)Marshal.GetActiveObject("Excel.Application");

现在我们正在使用office 365(excel 2016)

Now we are using office 365 (excel 2016)

代码代码再次运行,而不是使用15.0.0.0的文件版本文件

The code code doenst work anymore instead of using the file version 15.0.0.0 of the file

Microsoft.Office.Interop.Excel

Microsoft.Office.Interop.Excel

我做错了什么?

推荐答案

您好,

我无法重现您的问题。我可以使用该代码获取运行excel应用程序实例。

I failed to reproduce your issue. I could use the code to get a running excel application instance.

你的意思是代码不再起作用了吗?你有没有得到任何错误年龄?

What do you mean the code doesn't work anymore? Did you get any error message?

最好的问候,

Terry


这篇关于Excel 2016获得运行excel aaplication的意义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆