VBA转换为.NET语言转换为、语言、VBA、NET

2023-09-04 03:05:44 作者:- 吞噬你的灵魂,

可能重复:   是否有可能VBA转换到C#?

假设我有一个大的VBA项目,并希望将其转换为.NET语言。有没有什么办法可以自动做到这一点?或者,也许我能产生UML和类结构,然后用手工的方法追加尸体?

Suppose I have a big VBA project and want to convert it to a .NET language. Is there any way to do it automatically? Or maybe could I generate UML and a class structure, then append method bodies by hand?

推荐答案

我不认为有一种方式提供的迁移VBA到.NET,但也有转换工具网上,可能有助于为的部分的语法参考code。这种方法会很麻烦,但它仍然可能不是做这一切的手更加容易。

I don't think there's a provided way to migrate VBA to .NET, but there are conversion tools online that might help as a syntactical reference for parts of the code. This approach will be cumbersome, but it might still be easier than doing it all by hand.

下面是讨论迁移VBA到VB.NET的文章: http://msdn.microsoft.com/en -us /库/ aa192490%28V = office.11​​%29.aspx

Here's an article that discusses migrating VBA to VB.NET: http://msdn.microsoft.com/en-us/library/aa192490%28v=office.11%29.aspx

转换

下面是一个VB.NET到C#转换器: http://www.developerfusion.com/tool​​s/convert/vb-to- CSHARP /

Here's a VB.NET to C# converter: http://www.developerfusion.com/tools/convert/vb-to-csharp/

和这里的另一个问题: http://converter.telerik.com/

And here's another one: http://converter.telerik.com/

我不知道该怎么帮助的转换器会因为它们被设计用来.NET语言转换为其他.NET语言,但看到如何VBA和VB.NET也分享一些相似之处,你可能能够使用该转换器对于一些code。

I don't know how helpful the converters will be since they're designed to convert .NET languages to other .NET languages, but seeing as how VBA and VB.NET do share some similarities, you might be able to use the converter for some of the code.