If you want to prevent users from accessing Visual Basic Editor (VBE) on any PC / Workstation after you’ve installed Microsoft Office package (as there are certainly other ways to do it while installation), here’s the easiest way of doing this:
It is already mentioned over the link I shared above and I’m sharing it here just for my future references.
- Exit your version of all Office programs.
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click to select one of the following registry keys, depending on the version of the product that you are using:
- For Office 2013, locate and then click to select HKEY_LOCAL_MACHINESoftwareMicrosoftOffice15.0Common.
- For Office 2010, locate and then click to select HKEY_LOCAL_MACHINESoftwareMicrosoftOffice14.0Common.
- For the 2007 Office system, locate and then click to select HKEY_LOCAL_MACHINESoftwareMicrosoftOffice12.0Common.
- For Office 2003, locate and then click to select HKEY_LOCAL_MACHINESoftwareMicrosoftOffice11.0Common.
- For Office XP, locate and then click to select HKEY_LOCAL_MACHINESoftwareMicrosoftOffice10.0Common.
- After you select the key that is specified in step 3, point to New on the Edit menu, and then click DWORD Value.
- Type VBAOff, and then press ENTER.
- Right-click VBAOff, and then click Modify.
- In the Value data box, type 1, and then click OK.
- On the File menu, click Exit to quit Registry Editor.
References: Microsoft Support