Excel VBA编译错误 [英] Excel VBA compile error

查看:430
本文介绍了Excel VBA编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有在Windows XP下在Excel 2010中正常运行的VBA宏,但是当我尝试在Windows 10下运行它时,我收到一条错误消息,其内容如下所示...


编译错误:无法找到项目或库。


当代码调用Solver函数时出现错误。


我需要做些什么才能让宏在Windows 10下正确编译和运行?


谢谢,


杰克

解决方案

检查您的加载项,可能解决方案处于非活动状态,因此您需要打开。


文件 - >选项 - >插件


I have VBA macros that run fine in Excel 2010 under Windows XP, but when I try to run them under Windows 10 I get an error message which reads as the following...

Compile error: Can't find project or library.

The error comes up when the code makes a call to the Solver function.

What do I need to do to get the macro to compile and run correctly under Windows 10?

Thanks,

Jack

解决方案

Check your Add-Ins, probably Solver is inactive, so you need to switch on.

File -> Option -> Add-ins


这篇关于Excel VBA编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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