Learn how to get Free YouTube subscribers, views and likes
Get Free YouTube Subscribers, Views and Likes

7 Simple Practices for Writing Super-Readable VBA Code

Follow
Excel Macro Mastery

Ready to master VBA?
Check out my full courses: https://courses.excelmacromastery.com/
Subscribe to the channel here: https://bit.ly/36hpTCY
FREE CHEAT SHEET: Get the free cheat sheet on VBA arrays here: https://bit.ly/2MXsnz9
(Note: If the download page doesn't work then make sure to turn off any popup blockers)

7 Simple Practices for Writing SuperReadable VBA Code

Having readable code is vital. It makes understanding your code easy to update and easy to understand.

But most important of it will slash the number of errors in your code. You can waste a lot of time fixing errors so this is very important.

In this video I show 7 simple techniques that will make your code readable.


Useful VBA Shortcut Keys:
Tab: To move lines of code to the right(Indent).
Shift + Tab: To move lines of code to the left(Outdent).

Shift + F2: Get the definition of the item under the cursor.
Ctrl + Shift + F2: Go to the last cursor position.
Ctrl + Space: AutoComplete Word.
Alt + F11: Switch between Excel and the VBA Editor.
Ctrl + R: View the Project Explorer Window.
Ctrl + Shift + 8(or Ctrl + *): Get the current region on a worksheet.
F4: View the Properties Window.
F5: Run the code from the current sub.
F9(or click left margin): Add a breakpoint to pause the code.

posted by den191q