使用 Excel 2003 创建的 VBA 在 Excel 2007 中加载正常,但 VB 编辑器的项目树中没有任何内容

发布于 2024-11-30 01:06:50 字数 261 浏览 4 评论 0原文

我在 Excel 2003 中创建了一个 VBA 并将其保存为 xla 格式。该插件在 Excel 的工具栏中添加了一个新菜单和一些子菜单。一切正常,直到我升级到 Office 2007,然后打开 xla 文件。没有显示错误消息,但是当我查看宏列表时,那里没有项目。我打开 Visual Basic 编辑器。我的旧项目(名为 ML)仍然存在,但项目树中没有任何内容,只有添加新的空白项目时的默认文件。 我用记事本打开xla文件,我的变量、函数名称仍然存在。任何人有这种奇怪行为的经验,请给我线索。 提前致谢。

I have created a VBA in excel 2003 and save it in xla format. This AddIn add a new menu and some submenu in toolbar of Excel. All work well until I upgrade to Office 2007, then I open the xla file. No error message shown, but when I view the macro List, no items there. I open the Visual Basic editor. My old Project (named ML) is still there, but nothing in the Project tree, just default files as when add a new blank project.
I open the xla file with notepad, and my variable, function name are still there. Anyone has experience in this weird behavior, please give me a clue.
Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独孤求败 2024-12-07 01:06:50

工具栏加载项通常出现在 Excel 2007 功能区的加载项选项卡中。确保显示加载项选项卡(如果没有,您可以在 Excel 选项下将其打开)。

如果这仍然不起作用,您需要上网并阅读有关更改代码以符合功能区的信息 - 如果您需要这样做,有很多资源。

Toolbar add-ins generally appear in the add-ins tab of the ribbon in Excel 2007. Make sure you have the add-ins tab displayed (if not you can turn it on under excel options).

If that still isn't working you'll need to go online and read up on altering the code to conform to the ribbon - there are a lot of resources out there should you need to do this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文