You are on page 1of 6

VBA tutorials Day wise learning and shortcuts

Day 1 :To write VBA codes, first and foremost command to open VBA editor window
is Alt + F11
VBA Editor (Visual Basic) opens.
Ctrl +R Project explorer where you have docks showing VBA project
and an open sheet (to write the code) and also the workbook (means Excel
file you opened)
If another excel workbook is opened, it is also displayed in it

Right click VBA Project Insert Module (This is where we write the code
in Visual Basic)
Alt+F8 Opens the dialog box for Macro

To start writing, you enter sub --- which means subroutine and specify
the subject name (any name you want). It looks something like this

In between the two lines as shown, we write our code !!

1 | Page

When you run Alt+F8 and press Run, following window opens up !!

2 | Page

Referencing Ranges and Cells:-

Hiding and showing rows and columns:-

3 | Page

Day 2 :- Referencing Selections

Output :-

4 | Page

Creating variables :-

Numerical Operations with decimal points :5 | Page

6 | Page

You might also like