vba Office365 Excel 访问 RegExp 库的工具 -> 参考菜单
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42756114/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Office365 Excel access to the Tools -> References menu for RegExp library
提问by desktop
This might sound like a simple question but I'm creating a macro in VBA that uses regular expressions. It turns out VBA doesn't inherently support regex and I need to add a reference to 'Microsoft VBScript Regular Expressions 5.5' to gain access to regex functions in Excel.
这听起来像是一个简单的问题,但我正在 VBA 中创建一个使用正则表达式的宏。事实证明,VBA 本身并不支持正则表达式,我需要添加对“Microsoft VBScript 正则表达式 5.5”的引用才能访问 Excel 中的正则表达式函数。
All my searching online tells me you need to go to Tools -> References menu to add/remove references that can be used in VBA.
我所有的在线搜索都告诉我您需要转到“工具”->“引用”菜单以添加/删除可在 VBA 中使用的引用。
The Tools -> References menu in Excel as obtained from Google
从 Google 获得的 Excel 中的工具 -> 参考菜单
For the life of me I can't see where the Tools -> References menu is in my Excel. I've enabled the Developers tab and it's not there.
在我的一生中,我看不到工具 -> 引用菜单在我的 Excel 中的位置。我启用了“开发人员”选项卡,但它不存在。
If it helps, I'm using Excel on Office 365 (which Wikipedia tells me is Office 2016) on a Mac. Please help me find how I can access the References menu in Excel (whether or not it can be accessed via Tools -> Menu or some other way). Thanks.
如果有帮助,我将在 Mac 上的 Office 365(维基百科告诉我是 Office 2016)上使用 Excel。请帮助我找到如何访问 Excel 中的“参考”菜单(无论是否可以通过“工具”->“菜单”或其他方式访问)。谢谢。
采纳答案by Rich Holton
You need to open the Visual Basic (for applications) Editor, or VBE. On the Developers tab, look for "Visual Basic". It should be the left-most item.
您需要打开 Visual Basic(用于应用程序)编辑器或 VBE。在“开发人员”选项卡上,查找“Visual Basic”。它应该是最左边的项目。
Or, you can press Alt-F11.
或者,您可以按 Alt-F11。
The VBE is where you'll find the Tools menu, and the References submenu.
VBE 是您可以找到“工具”菜单和“参考”子菜单的地方。
回答by Tony
You need to open the Visual Basic editor. On the ribbon in Excel, select Developer, then Visual Basic. This will open the VBA interface in a separate window. On this new window, you should see the Tools -> References option.
您需要打开 Visual Basic 编辑器。在 Excel 的功能区上,选择开发人员,然后选择 Visual Basic。这将在单独的窗口中打开 VBA 界面。在这个新窗口中,您应该会看到 Tools -> References 选项。