Start Code Execution

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

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, click 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.