0% found this document useful (0 votes)
39 views

Excel VBA Pocketguide

This document describes a business application bundle that includes 9 courses on Microsoft Excel, Word, PowerPoint, and Power BI. The bundle costs $659 or INR 50,000 and provides over 900 videos and 60 hours of content across the 9 courses. The courses cover topics like Excel, VBA, dashboards, Power Query, and visualization in both English and Hindi.

Uploaded by

Gudla Akansha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Excel VBA Pocketguide

This document describes a business application bundle that includes 9 courses on Microsoft Excel, Word, PowerPoint, and Power BI. The bundle costs $659 or INR 50,000 and provides over 900 videos and 60 hours of content across the 9 courses. The courses cover topics like Excel, VBA, dashboards, Power Query, and visualization in both English and Hindi.

Uploaded by

Gudla Akansha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 49

Business Application Bundle

All in one place: 9 Courses | 900+ Videos | 60+ hrs. 1


$659 or INR 50,000
1. Excel Ninja Course
$65 or INR 5,000 2. Excel VBA Course
3. Excel Dashboard Course
4. MS Word Course
5. MS PowerPoint Course
Business Application 6. Power Query for Excel & Power BI
Bundle 7. Power BI Visualization
8. Advanced Excel in Hindi (English & Hindi mix)
9. Excel VBA in Hindi (English & Hindi mix)

All in one place: 9 Courses | 900+ Videos |


60+ hrs.
2
How to learn Excel VBA Macros
A pocket guide to build your VBA foundation

(c) Yoda Learning Solutions


Table of Content

VBA Approaches
VBE Walkthrough
Code Testing Tricks
Objects, Properties, Methods
Variables Overview
VBA Approaches
VBE Walkthrough
Code Testing Tricks
Objects, Properties, Methods
Variables Overview

Write
Codes
Record
Macros

Searching
Google for codes


(c) Yoda Learning Solutions 6

Write
Codes
Record
Macros

Searching
Google for codes


(c) Yoda Learning Solutions 7
START END

Sub End Sub


Function End Function

VBA Code
(incl. comments)

(c) Yoda Learning Solutions 8


3 magic words…
“VBA code to…”

(c) Yoda Learning Solutions


9 9
(c) Yoda Learning Solutions
10 10
vba code to [task to achieve]

(c) Yoda Learning Solutions


11 11
vba code to [verb] [object] [addl. logic]

(c) Yoda Learning Solutions


(c) Yoda Learning Solutions
12 12
vba code to split table by columns

(c) Yoda Learning Solutions


13 13
vba code to convert numbers in words rupees

(c) Yoda Learning Solutions


14 14
vba code to combine multiple workbooks

(c) Yoda Learning Solutions


15 15
Let’s see how it works…

(c) Yoda Learning Solutions 16


#1 Create index of links to worksheets

(c) Yoda Learning Solutions 17


#1 Create index of links to worksheets

(c) Yoda Learning Solutions 18


#2 Convert numbers in words rupees

(c) Yoda Learning Solutions 19


#3 Split table by column


(c) Yoda Learning Solutions 20
VBA Approaches
VBE Walkthrough
Code Testing Tricks
Objects, Properties, Methods
Variables Overview
PROJECT EXPLORER

PROPERTIES WINDOW
CODE WINDOW

22
(c) Yoda Learning Solutions 22
CODE WINDOW

23
(c) Yoda Learning Solutions 23
PROJECT EXPLORER

24
(c) Yoda Learning Solutions 24
PROPERTIES WINDOW

25
(c) Yoda Learning Solutions 25
ACTIVATE WINDOWS

26
(c) Yoda Learning Solutions 26
SAMPLE CODE

27
(c) Yoda Learning Solutions 27
VBA Approaches
VBE Walkthrough
Code Testing Tricks
Objects, Properties, Methods
Variables Overview
#1 - Code Testing Tricks – Basics

• F8 – Run the code line by line

• F5 – Run the code at one go

29
(c) Yoda Learning Solutions 29
How to increase the font size of the codes

30
(c) Yoda Learning Solutions 30
VBA Approaches
VBE Walkthrough
Code Testing Tricks
Objects, Properties, Methods
Variables Overview
#1
OBJECTS

CHILD OBJECTS
(c) Yoda Learning Solutions 32
#1
OBJECTS

CHILD OBJECTS
(c) Yoda Learning Solutions 33
#1

(c) Yoda Learning Solutions 34


#1

(c) Yoda Learning Solutions 35


#2

Person
Properties Methods

Name Talk

Age Walk

Weight Run

Gender Dance

(c) Yoda Learning Solutions 36


Summary

Objects Properties Methods

~ Nouns ~ Adjectives ~ Verbs

Select or Set or Invoke


Define Change action

(c) Yoda Learning Solutions 37


Summary

Objects Properties Methods

~ Nouns ~ Adjectives ~ Verbs

Select or Set or Invoke


Define Change action

(c) Yoda Learning Solutions 38


Objects Hierarchy

▪ Application (Excel) contains one or more Workbooks


▪ Each Workbook contains one or more Worksheets
▪ Each Worksheet contains a range of cells

(c) Yoda Learning Solutions 39


Summary

Objects Properties Methods

~ Nouns ~ Adjectives ~ Verbs

Select or Set or Invoke


Define Change action

(c) Yoda Learning Solutions 40


A glimpse at the VBA codes…

(c) Yoda Learning Solutions 41


Dot notation

(c) Yoda Learning Solutions 42


Dot notation (cont’d)

(c) Yoda Learning Solutions 43


VBA Approaches
VBE Walkthrough
Code Testing Tricks
Objects, Properties, Methods
Variables Overview
What is a Variable?

In a class of 30 students, the


number of females is twice than
the number of males.
“x” can hold a
How many males are there in the positive whole number
class?

Let “x” be the number of males.

Thus, 2x + x = 30

45
(c) Yoda Learning Solutions 45
What is a Variable? (…cont’d)

A variable is like a container, where in it stores something.

Different types of container can store different varieties of


things.

E.g. you can easily store water in a bottle made out of glass,
plastic or metal. However, a suitcase isn’t appropriate.

46
(c) Yoda Learning Solutions 46
What is a Variable? (…cont’d)

Declare a variable using DIM

47
(c) Yoda Learning Solutions 47
What is a Variable? (…cont’d)

Initialize a variable

Assigning a variable an initial value

48
(c) Yoda Learning Solutions 48
$659 or INR 50,000
1. Excel Ninja Course
$65 or INR 5,000 2. Excel VBA Course
3. Excel Dashboard Course
4. MS Word Course
5. MS PowerPoint Course
Business Application 6. Power Query for Excel & Power BI
Bundle 7. Power BI Visualization
8. Advanced Excel in Hindi (English & Hindi mix)
9. Excel VBA in Hindi (English & Hindi mix)

All in one place: 9 Courses | 900+ Videos |


60+ hrs.

You might also like