Office365 Excel access to the Tools -> References menu for RegExp library

人走茶凉 提交于 2019-12-24 08:23:59

问题


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.

All my searching online tells me you need to go to Tools -> References menu to add/remove references that can be used in VBA.

The Tools -> References menu in Excel as obtained from Google

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.

This is what I see

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.


回答1:


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.

Or, you can press Alt-F11.

The VBE is where you'll find the Tools menu, and the References submenu.




回答2:


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.



来源:https://stackoverflow.com/questions/42756114/office365-excel-access-to-the-tools-references-menu-for-regexp-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!