通过代码从excel启动vba编辑器 [英] Launch the vba editor from excel by code

查看:193
本文介绍了通过代码从excel启动vba编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Vsto-excel 项目中,我在特定模块中有一个
通过c#中的代码,我想启动显示给定的的VBA编辑器。
i知道互操作的概念,但是我们停止启动vba编辑器并显示特定的宏。

In Vsto-excel project , i have a macro in a particular module. By code in c#, i want to launch the VBA editor showing the given macro. i know the interop concepts , but i m stuck at launching the vba editor and showing the particular macro.

推荐答案

你可以使用 Application.GotoMarcoName,这将在您指定的子/宏中打开VBE。

You can use Application.Goto "MarcoName" which will open up the VBE at the sub / macro you specify.

这篇关于通过代码从excel启动vba编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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