热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

在不打开excel的情况下读取/读取excel?-Retreiving/readingexcelmacrowithoutopeningexcel?

Iwroteanexcelmacrothatseemstohavebroken,unfortunatelywhenItrytoeditthemacrointhe

I wrote an excel macro that seems to have broken, unfortunately when I try to edit the macro in the VBA editor, excel itself crashes spectacularly. This seems to happen whether I open the VBA Editor before or after loading the problematic excel file.

我编写了一个excel宏,它似乎坏了,不幸的是,当我试图在VBA编辑器中编辑这个宏时,excel本身就崩溃得很厉害。这似乎是在加载有问题的excel文件之前或之后打开VBA编辑器时发生的。

Does anyone know of a way of viewing the VBA code that I've written without using excel to get there? Alternatively, can anyone get to the VBA code in (this excel file)(Link Removed) without it crashing their excel?

有谁知道不用excel就能看到我写的VBA代码吗?或者,任何人都可以在(这个excel文件)(删除了链接)中访问VBA代码而不会破坏他们的excel吗?

Unlike "Running Macros without opening excel" I don't need to be able to run the broken code without excel - just copy and paste it somewhere to fix it!

与“运行宏而不打开excel”不同,我不需要在没有excel的情况下运行损坏的代码——只需复制并粘贴到某个地方就可以修复它!

1 个解决方案

#1


1  

I created a fresh new excel file and open the VBA editor. Then I opened the one you provided, but I had put it in a non-secure folder. Excel prompted me the choice of opening it with macros disabled. I did, and I could see the code in the editor. :)

我创建了一个新的excel文件并打开VBA编辑器。然后我打开了你提供的那个,但是我把它放在了一个不安全的文件夹里。Excel让我选择禁用宏打开它。我做到了,我可以在编辑器中看到代码。:)


推荐阅读
author-avatar
天蝎快乐公主_594
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有