How to Fix VBA Error 400

When some Excel users try to run their Macro, they seem to get a VBA error 400. There is only a box with an OK button and no other information.

Keep reading this article to learn how to fix this error in different ways.

Move your Macros to Another Module

Launchย Microsoft Excel.

Go toย Developer tabย and selectย Visual Basic.

In the VBA menu, clickย Insertย and selectย Module.

Paste theย VBA codeย that you want to use.

Click onย Fileย menu and select Save.

Deleteย the old module.

Turn on trusted access

Launchย Microsoft Excel.

Go toย Developer tabย and select Macro Security.

Under Developer Macro Settings, click on Trusted access to the VBA project.

Check your code for mistakes to fix VBA error 400

Make sure to check your code for mistakes all the time. Also, you need to make sure that none of the macros are broken.

Miguel

I started this tech blog back in 2011 as a place to write down processes I took to fix my client systems and network. Now I write some tips and tricks to help others with the tech issues that one might encounter.

You may also like...