Compilation errors, also known as compiler errors, are errors that prevent your program from running. When you press F5 to run a program, Visual Basic compiles your code into a binary language that the computer understands. If the Visual Basic compiler comes across code that it does not understand, it issues a compiler error.
Most compiler errors are caused by mistakes that you make when typing code. For example, you might misspell a keyword, leave out some necessary punctuation, or try to use an End If statement without first using an If statement.
Fortunately the Visual Basic Code Editor was designed to identify these mistakes before you try to run the program. You will learn how to find and fix compilation errors in the next lesson, Oops, a Typo: Finding and Getting Rid of Compiler Errors.