Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 17

FUSHAN

VBA - SHARING COURSE TECHNOLOGY


VIETNAM

Author: Phan Trong Hieu (PQA)


Date: Aug-2021
CONTENT

I. • CHOOSING TEAM

II. • ROUND 1 | WARM-UP

III. • ROUND 2 | OVERCOMING OBSTACLES

IV. • VBA INTRODUCTION

V. • ROUND 3 | ACCELERATION

VI. • ROUND 4 | FINISH

VII. • SUMMARY
I. CHOOSING TEAM
1 Nguyễn Văn 1 Team Excel VBA Team Excel Macro
2 Nguyễn Văn 2
3 Nguyễn Văn 3
4 Nguyễn Văn 4
5 Nguyễn Văn 5
6 Nguyễn Văn 6
7 Nguyễn Văn 7
8 Nguyễn Văn 8
9 Nguyễn Văn 9
10 Nguyễn Văn 10
11 Nguyễn Văn 11
12 Nguyễn Văn 12
13 Nguyễn Văn 13
14 Nguyễn Văn 14
15 Nguyễn Văn 15
16 Nguyễn Văn 16
17 Nguyễn Văn 17
18 Nguyễn Văn 18
19 Nguyễn Văn 19
20 Nguyễn Văn 20
II. ROUND 1 | WARM-UP
1. Target: Solving math with excel
2. Rule
- Must use excel tool
- Don't use equation
- Time: 5 minutes
3. Score
- If you meet the target during 5 minutes, you can receive 50 points.
- You receive further 1 point for each remaining second.

0:05:00
III. ROUND 2 | OVERCOMING OBSTACLES
1. Target: Insert pictures into the excel
2. Rule:
- Insert the picture (total: 30 pictures) in column C that matches the name in column B
- Time: 5 minutes
3. Score
- If you meet the target during 5 minutes, you can receive 100 points.
- You receive further 3 points for each remaining second.

0:05:00
IV. VBA INTRODUCTION
WHAT IS VBA?

VBA stands for Visual Basic for Applications

Basic stands for Application

Application is a program or group of


Beginner’s All-Purpose Symbolic
programs designed to perform a task or
Instruction Code
activity of end user.

Basic Language Examples of Application

Basic Language is designed by


John G. Kemeny and Thomas E
Kurtz in Dartmounth College.

Basic Language is designed in


1964.
IV. VBA INTRODUCTION
WHAT IS EXCEL-VBA AND EXCEL MACROS?

VBA is a language what help you to write code to


automate the task of applications
Visual Basic for
Applications Excel-VBA is designed by Microsoft in 1993

Visual Basic for Applications is a programming


language you can use to create macros

The sequence of instructions that you want Excel to


Excel macros
follow in order to achieve a particular purpose
IV. VBA INTRODUCTION
ADVANTAGES & DISADVANTAGES

Advantages Disadvantages
- Automates repetitive and routine tasks - You have to know to write programs in VBA. Luckily,
- Reduces the turnaround time it’s not as difficult as you might expect
- Reduces the formulas burden used in Excel reports - Sometimes, things can go wrong, In other words, you
- Excel always executes the task in exactly the same can’t blindly assume that your VBA program will
way always work correctly circumstances
- If you’re a good macro programmer, Excel always - VBA is moving target. As you know, Microsoft is keep
performs the task without errors upgrading Excel. Sometimes VBA code you’ve written
doesn’t work properly with older versions or with a
future version of Excel
IV. VBA INTRODUCTION
HOW TO ENABLE THE DEVELOPER TAB IN EXCEL?
Step 1: On the File tab, go to Options > Customize Ribbon
Step 2: Under Customize the Ribbon and under Main Tabs, select the Developer check box
Write macros
Run macros that you previously recorded
Use XML commands
Use ActiveX controls
Developer tab
Create applications to use with Microsoft Office programs
Use form controls in Microsoft Excel
Work with the ShapeSheet in Microsoft Visio
Create new shapes and stencils in Microsoft Visio
IV. VBA INTRODUCTION
VISUAL BASIC DEVELOPMENT ENVIRONMENT (ALT F11)
IV. VBA INTRODUCTION
SOME METHOD TO WRITE VBA CODE
- Sign up for the online courses
- Sign up for the offline courses
- Self-learning

• Sub
1
• Code 1 referenced from source A on the internet
2
• Excel Formula + Excel Macro
3
One of the methods • Code 2 referenced from source B on the internet
4
• Excel Formula + Excel Macro
5
• Code 3 referenced from source C on the internet
6
• End Sub
7
IV. VBA INTRODUCTION
EXAMPLE OF EXCEL VBA & EXCEL MACRO

Sub ExampleVBA() Sub Macro1()


' 1
Dim i As Integer ' Macro1 Macro
For i = 1 To 21 Step 1 '
Cells(2, i).Value = i
Next '
Range("B3").GoalSeek Goal:=100,
End Sub ChangingCell:=Range("B1")
2
End Sub

VBA CODE WITH SELT-WRITTING VBA CODE USING EXCEL MACRO


IV. VBA INTRODUCTION
TOOLING AUTOMATION BY USING VBA
- Histogram chart, Boxplot chart, Pareto chart Histogram Box Plot Pareto
- Label automation (Telit)
- Query web to get the data automatically (Falcon – SFC system)
V. ROUND 3 | ACCELERATION
1. Target: Solving math with excel
2. Rule:
- Must use excel tool
- Don't use equation
- Time: 5 minutes
3. Score
- If you meet the target during 5 minutes, you can receive 200 points.
- You receive further 10 points for each remaining second.

0:05:00
VI. ROUND 4 | FINISH
1. Target: The less the better
2. Rule:
- Use ←↑↓→ on the keyboard 2048

- Time: 5 minutes
3. Score

Target 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144

Point 0.25 0.5 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768

0:05:00
VII. SUMMARY

Team Excel VBA Team Excel Macro


Fixed point
Round 1
Bonus point
Fixed point
Round 2
Bonus point
Fixed point
Round 3
Bonus point
Fixed point
Round 4
Bonus point
Total 0 0
THANK YOU!

You might also like