Start code execution

One way to test your code is to run it and work with it as a user would.

To start code execution

  • Choose Run Sub/UserForm (F5) from the Run menu.

If your application doesn't run, it may be because:

To get Help, choose the Help button or press F1 while the error message is displayed. Consider the suggestions provided to correct the error before you run your code again.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.