VBA 代码转换为c#代码

来源:百度知道 编辑:UC知道 时间:2024/06/08 18:05:40
ActiveDocument.Shapes(ListBox1.List(ListBox1.ListIndex)).Select
VBA是用于WORD程序的

你得说明VBA是用于什么程序的。如果是WORD,可以这样:
//我假定你写的是一个Add-in程序
Globals.ThisAddIn.Application.ActiveDocument.Shapes(ListBox1.List(ListBox1.ListIndex)).Select

//基本上插件程序里的语法差不多

这个很难讲.