我们可以在C#中为Excel编写一个宏 [英] Can we write a macro in C# for Excel

查看:183
本文介绍了我们可以在C#中为Excel编写一个宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须遍历大约25张excel进行操作。我使用vba来做它,发现它很慢,因此想知道我是否可以使用C#,如果这样做会帮助我加快进程。

解决方案

从Excel工作簿中调用C#,如VBA宏 - 您不能



可以从C#应用程序访问Excel工作簿。这被称为Microsoft Visual Studio Tools for Office( VSTO


I have to traverse about 25 sheets in excel for doing operations.I'm doing it using vba and finding it really slow,hence wanted to know if I could use C# and if doing that would help me speed up the process.

解决方案

Call C# from Excel workbook like VBA macro - you can't

Access Excel workbook from C# application - you can. This is called Microsoft Visual Studio Tools for Office (VSTO)

这篇关于我们可以在C#中为Excel编写一个宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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