SlideShare a Scribd company logo
4
Most read
6
Most read
7
Most read
EXCEL
VBA
HELLO!
I am Dhruyen Hadiya
I am here to give presentations
on topic Excel-VBA.
Subject: Process Modelling, Simulation
and Optimization(3170513)
Table of Contents
Visual Basic for
Applications
Finding the correct input
when only the output is
known
An action or a set of actions
that you can record
Use for what-if analysis
MACRO SOLVER
VBA GOAL SEEK
“ VBA stands for Visual Basic for
Applications. Excel VBA is Microsoft's
programming language for Excel.
Excel analysis is ubiquitous around the
world and used by businesses,
chemical & biomedical engineering of
all sizes to perform analysis.”
While we cannot directly manipulate
the main Excel software through
VBA, we can, however, master the art
of making MACROS to optimize our
time in Excel.
If you have tasks in Microsoft Excel that
you do repeatedly, you can record a
macro to automate those tasks.
● In the Code group on the Developer tab, click Record Macro.
● Optionally, enter a name for the macro in the Macro name box, enter a
shortcut key in the Shortcut key box, and a description in the Description box,
and then click OK to start recording.
● Perform the actions you want to automate, such as entering boilerplate text or
filling down a column of data.
● On the Developer tab, click Stop Recording.
How to record
MACRO?
SUBROUTINE FUNCTION
A Subroutine in VBA is a piece of
code that performs a specific task
described in the code but does not
return a result or a value.
Subroutines are used to break down
large pieces of code into small
manageable parts. Subroutines can
be recalled multiple times from
anywhere in the program
A function performs a calculation
and returns a single value. The SUM
function adds the sum of a range of
values.
Excel-VBA
GOAL
SEEK
The Goal Seek Excel function (often
referred to as What-if-Analysis) is a
method of solving for a desired output
by changing an assumption that drives
it. The function essentially uses a trial
and error approach to back-solving the
problem by plugging in guesses until it
arrives at the answer.
STEP FOR GOAL SEEK
● Create a spreadsheet in Excel that has your data.
● Click the cell you want to change. This is called the “Set cell.”
● From the Data tab, select the What if Analysis… button.
● Select Goal seek… from the drop-down menu.
● In the Goal Seek dialog, enter the new “what if” amount in the To value:
text box.
● We also need to tell Excel which cell to change.
● Click OK. Excel will overwrite the previous cell value with the new one.
Excel-VBA
SOLVER
Solver is a Microsoft Excel add-in program you can use for what-if
analysis. Use Solver to find an optimal (maximum or minimum)
value for a formula in one cell — called the objective cell — subject
to constraints, or limits, on the values of other formula cells on a
worksheet.
Excel-VBA
Excel-VBA
ALL TOGETHER
Excel-VBA
ANY
QUESTION
?
Thanks!

More Related Content

PPTX
Data Analysis with MS Excel.pptx
PDF
Getting started with Microsoft Excel Macros
PPTX
Vba introduction
PPTX
An introduction to vba and macros
PPTX
MS-EXCEL Assignment Help
PDF
1. statistical functions in excel
PPT
Microsoft Excel Project 1 Presentation
PPTX
Learn Excel Macro
Data Analysis with MS Excel.pptx
Getting started with Microsoft Excel Macros
Vba introduction
An introduction to vba and macros
MS-EXCEL Assignment Help
1. statistical functions in excel
Microsoft Excel Project 1 Presentation
Learn Excel Macro

What's hot (20)

PPTX
E learning excel vba programming lesson 3
PPTX
PPT
VBA - Macro For Ms.Excel
PPT
Using macros in microsoft excel part 1
PPTX
Excel macro
PPTX
Microsoft Excel - Macros
PPT
MACROS excel
PDF
Online Advance Excel & VBA Training in India
PPTX
Vba part 1
PPTX
A Quick Simple MS Excel Macro
DOC
Microsoft Excel Tutorial
PDF
Excel Macro Magic
PPTX
Basic Ms excel
PDF
Using the IF Function in Excel
PPT
MS EXCEL
PPTX
Microsoft Excel Tutorial
PDF
Ms excel excersices
PDF
Introduction to Excel - Excel 2013 Tutorial
PPT
M.S EXCEL
E learning excel vba programming lesson 3
VBA - Macro For Ms.Excel
Using macros in microsoft excel part 1
Excel macro
Microsoft Excel - Macros
MACROS excel
Online Advance Excel & VBA Training in India
Vba part 1
A Quick Simple MS Excel Macro
Microsoft Excel Tutorial
Excel Macro Magic
Basic Ms excel
Using the IF Function in Excel
MS EXCEL
Microsoft Excel Tutorial
Ms excel excersices
Introduction to Excel - Excel 2013 Tutorial
M.S EXCEL
Ad

Similar to Excel-VBA (20)

PPT
Excel 2007 Unit K
PPTX
Electronic Spreadsheet Notes.. Libre office
PPTX
Electronic Spreadsheet Notes.. Libre office
PPTX
MS EXCEL PPT PRESENTATION
PPTX
Advanced Filter Concepts in MS-Excel
PPTX
PPTX
Learn VBA Training & Advance Excel Courses in Delhi
PDF
Developing Spreadsheetbased Decision Support Systems Using Excel And Vba For ...
PDF
Excel parts, formulas, and equation Pdf.
PPTX
Data management and excel appication.pptx
PPTX
Introduction to Excel VBA/Macros
PPTX
Excel_Breif_Overview.pptx
PPT
Excel 2007 Unit P
PDF
Basic Functions - Excel 2013 Tutorial
PDF
Excel Basics presentation for every working professionals
PPTX
Skill enhancement course SOLVER ADD IN Data analysis
PPTX
Ms Excel- Its uses & Functions.pptx
PPTX
Excel basics for everyday use part two
PPT
Excel intermediate
Excel 2007 Unit K
Electronic Spreadsheet Notes.. Libre office
Electronic Spreadsheet Notes.. Libre office
MS EXCEL PPT PRESENTATION
Advanced Filter Concepts in MS-Excel
Learn VBA Training & Advance Excel Courses in Delhi
Developing Spreadsheetbased Decision Support Systems Using Excel And Vba For ...
Excel parts, formulas, and equation Pdf.
Data management and excel appication.pptx
Introduction to Excel VBA/Macros
Excel_Breif_Overview.pptx
Excel 2007 Unit P
Basic Functions - Excel 2013 Tutorial
Excel Basics presentation for every working professionals
Skill enhancement course SOLVER ADD IN Data analysis
Ms Excel- Its uses & Functions.pptx
Excel basics for everyday use part two
Excel intermediate
Ad

Recently uploaded (20)

PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Construction Project Organization Group 2.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
Digital Logic Computer Design lecture notes
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
OOP with Java - Java Introduction (Basics)
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
additive manufacturing of ss316l using mig welding
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Geodesy 1.pptx...............................................
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
CYBER-CRIMES AND SECURITY A guide to understanding
Construction Project Organization Group 2.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Digital Logic Computer Design lecture notes
Foundation to blockchain - A guide to Blockchain Tech
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Embodied AI: Ushering in the Next Era of Intelligent Systems
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Operating System & Kernel Study Guide-1 - converted.pdf
OOP with Java - Java Introduction (Basics)
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
additive manufacturing of ss316l using mig welding
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Geodesy 1.pptx...............................................

Excel-VBA

  • 2. HELLO! I am Dhruyen Hadiya I am here to give presentations on topic Excel-VBA. Subject: Process Modelling, Simulation and Optimization(3170513)
  • 3. Table of Contents Visual Basic for Applications Finding the correct input when only the output is known An action or a set of actions that you can record Use for what-if analysis MACRO SOLVER VBA GOAL SEEK
  • 4. “ VBA stands for Visual Basic for Applications. Excel VBA is Microsoft's programming language for Excel. Excel analysis is ubiquitous around the world and used by businesses, chemical & biomedical engineering of all sizes to perform analysis.”
  • 5. While we cannot directly manipulate the main Excel software through VBA, we can, however, master the art of making MACROS to optimize our time in Excel. If you have tasks in Microsoft Excel that you do repeatedly, you can record a macro to automate those tasks.
  • 6. ● In the Code group on the Developer tab, click Record Macro. ● Optionally, enter a name for the macro in the Macro name box, enter a shortcut key in the Shortcut key box, and a description in the Description box, and then click OK to start recording. ● Perform the actions you want to automate, such as entering boilerplate text or filling down a column of data. ● On the Developer tab, click Stop Recording. How to record MACRO?
  • 7. SUBROUTINE FUNCTION A Subroutine in VBA is a piece of code that performs a specific task described in the code but does not return a result or a value. Subroutines are used to break down large pieces of code into small manageable parts. Subroutines can be recalled multiple times from anywhere in the program A function performs a calculation and returns a single value. The SUM function adds the sum of a range of values.
  • 9. GOAL SEEK The Goal Seek Excel function (often referred to as What-if-Analysis) is a method of solving for a desired output by changing an assumption that drives it. The function essentially uses a trial and error approach to back-solving the problem by plugging in guesses until it arrives at the answer.
  • 10. STEP FOR GOAL SEEK ● Create a spreadsheet in Excel that has your data. ● Click the cell you want to change. This is called the “Set cell.” ● From the Data tab, select the What if Analysis… button. ● Select Goal seek… from the drop-down menu. ● In the Goal Seek dialog, enter the new “what if” amount in the To value: text box. ● We also need to tell Excel which cell to change. ● Click OK. Excel will overwrite the previous cell value with the new one.
  • 13. Solver is a Microsoft Excel add-in program you can use for what-if analysis. Use Solver to find an optimal (maximum or minimum) value for a formula in one cell — called the objective cell — subject to constraints, or limits, on the values of other formula cells on a worksheet.