Professional Documents
Culture Documents
VBA Tutorial - Day Wise
VBA Tutorial - Day Wise
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
1 | Page
When you run Alt+F8 and press Run, following window opens up !!
2 | Page
3 | Page
Output :-
4 | Page
Creating variables :-
6 | Page