Home | Back to Courses

Excel Macros and VBA for Beginners

Course Image
Partner: Udemy
Affiliate Name:
Area:
Description: A macro is a sequence of instructions that automates some aspect of Excel so that you can work more efficiently and with fewer Errors. Macros are written in VBA, which stands for Visual Basic for Applications, is a programming language developed by Microsoft.Sub: A sub is made up of one or more lines of code. When we “Run” the sub, VBA goes through all the lines of code and carries out the appropriate actions. A macro and a sub are essentially the same thing.Module: A module is simply a container for our subs. A module contains subs which in turn contain lines of code. There is no limit(within reason) to the number of modules in a workbook or the number of subs in a module.VBA Editor: This is where we write our code. Pressing Alt + F11 switches between Excel and the Visual Basic Editor. If the Visual Basic editor is not currently open then pressing Alt + F11 will automatically open it. When we use the term Excel Macros we are referring to VBA. The term macro is essentially another name for a sub. Any time you see the terms Excel Macros or VBA just remember they are referring to the same thing.In VBA we create lines of instructions for VBA to process. We place the lines of code in a sub. These subs are stored in modules.We can place our subs in the module of the worksheet. However, we generally only place code for worksheet events here.In VBA, we create new modules to hold most of our subs. So for our first activity let’s go ahead and create a new module.What you will learn:What VBA is and why it is so incredibly usefulWhat  are MacrosCreating Macros using macro recorderCreating macro manually from scratchEditing MacrosDebugging MacrosHow to write VBA code and execute it in ExcelHow to make your macros work with workbooks, worksheets and the data on themHow to find and eli
Category: Office Productivity > Microsoft > Excel VBA
Partner ID:
Price: 19.99
Commission:
Source: Impact
Go to Course