Since code in a programming language has to be written exactly, there can be no errors or bugs. Fortunately, you can debug code in VBA quickly with these debugging shortcuts:

Action Shortcut Key
Toggle breakpoint F9
Step into F8
Step over Shift+F8
Step out Ctrl+Shift+F8
Run to cursor Ctrl+F8
Clear all breakpoints Ctrl+F9