Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试编写一个简单的宏来将小写字母转换为大写。每当我运行它时,它都会给出一条错误消息:“编译错误:找不到项目或库”
它不识别 UCase 和 Format 函数。我该如何解决这个问题?
Sub text001() Dim x As String x = "is lois a good girl" x = UCase(x) mystr = Format("this is good", ">") End Sub
当我遇到这个问题时,我发现经常保存、关闭和重新打开可以解决这个问题。
否则,在“参考”对话框中,添加另一个参考,保存并关闭。
当您重新打开时,您的参考文献应该被修复。