lvgangqiang's picture From lvgangqiang rss RSS  subscribe Subscribe

Introduction to EXCEL VBA Part I  



 
Views:  24477
Downloads:  305
Published:  February 29, 2008
 
7
save to favorite
ask author to add audio Ask author to add audio
Share plick with friends Share
mark as inappropriate Mark as inappropriate
 
Related Plicks
 Implementing Legacy Statistical Algorithms in a Spreadsheet Environment

Implementing Legacy Statistical Algorithms in a Spreadsheet Environment

From: lvgangqiang
Views: 3930 Comments: 0

 
Excel VBA Programming for Solving Chemical Engineering Problems

Excel VBA Programming for Solving Chemical Engineering Problems

From: lvgangqiang
Views: 28613 Comments: 1

 
VBA & Excel

VBA & Excel

From: lvgangqiang
Views: 14140 Comments: 0

 
See all 
 
More from this user
 Computer Technology 202 Applications of Spreadsheets

Computer Technology 202 Applications of Spreadsheets

From: lvgangqiang
Views: 3592
Comments: 0

Excel VBA Programming for Solving Chemical Engineering Problems

Excel VBA Programming for Solving Chemical Engineering Problems

From: lvgangqiang
Views: 28613
Comments: 1

Design Optimization With  Excel

Design Optimization With Excel

From: lvgangqiang
Views: 7843
Comments: 0

VBA教程

VBA教程

From: lvgangqiang
Views: 17031
Comments: 0

 Implementing Legacy Statistical Algorithms in a Spreadsheet Environment

Implementing Legacy Statistical Algorithms in a Spreadsheet Environment

From: lvgangqiang
Views: 3930
Comments: 0

VBA Programming for Excel

VBA Programming for Excel

From: lvgangqiang
Views: 25626
Comments: 0

See all 
 
Place your Ad here for $4.00 a month
Oracle SOA Suite
Service and process infrastructure components for building, deploying, and managing SOAs
 
 
 URL:          AddThis Social Bookmark Button
Embed Thin Player: (fits in most blogs)
Embed Full Player :
 
 

Name

Email (will NOT be shown to other users)

 

 
 
Comments:
 
 
Notes:
 
 
Slide 1: Introduction to EXCEL VBA Part I 01/23/2008 Alexandra Chronopoulou 1
Slide 2: What is VBA?  Visual Basic Applications VBA IDE: VBA Integrated Development Environment Programming tools within Excel 2  
Slide 3: Today…   Built-in Functions in Excel Create & Modify Excel Macros   Using Macros Recorder Using Visual Basic Editor   Excel Solver VBA Programming    Introduction/ Terminology Subroutines, Functions, Variables Arrays & Loops 3
Slide 4: Built – in Functions in Excel  Summary Statistics Matrix Operations Logical Functions   4
Slide 5: Macros      How to create a simple macro. How to modify a macro using the VBA editor. Project Explorer & Properties windows. How to use a macro. Example… 5
Slide 6: EXCEL Solver  What can we do with it?   Find Local Minimum/Maximum Solve a system of Non-Linear Equations Tools -> Add Ins -> Solver Add-Ins  Where to find it:   Examples 6
Slide 7: Introduction to VBA Programming  Differences & similarities with the other members of the VB family  Interpreted language  VBA is more than a macro language  Comparison with other macro languages 7
Slide 8: VBA Terminology  Data Types       Numeric (single, double, currency) Object Boolean Date String Variant 8
Slide 9: VBA Terminology (cont’d)  Variables   Spaces are not allowed when naming variables VBA is not case-sensitive Functions Subroutines 9  Procedures  
Slide 10: VBA Terminology (cont’d)  Arrays   We can have up to 60 dimensions They can be either fixed-length or dynamic  Constants 10
Slide 11: VBA Terminology (cont’d)  Operators     Arithmetic (e.g. +, -, ^, *, Mod) Concatenation ( & ) Comparison (e.g. >=, <=, <>) Logical (And, Or, Not, Xor, Eqv,) 11
Slide 12: How to create a SUBROUTINE   Each macro in Excel is a Subroutine. 2 types:  Public & Private Private Sub TestSub()  Syntax  If it is not defined as private, the default is public.  Examples (with & without input arguments) 12
Slide 13: How to create a FUNCTION    Not called from macro dialog box 2 types: public & private Syntax Private Function TestFunc() As Integer FunctionValue = TestFunc(Param)  If it is not defined as private, the default is public.  Example (Black-Scholes, Binomial) 13
Slide 14: How to DECLARE a Variable  VBA lets you use variables that have not been declared!  To avoid confusion use: Option Explicit Option Explicit Sub CreateVariable() Dim NewVariable As Integer End Sub  other way of defining that NewVariable is an integer: Dim NewVariable% 14
Slide 15: Arrays  Specify the scope of an array as:  Dim, Public, Private Sub DeclareArray Dim NewArray(1 To 3) As String NewArray(1) = “One” … End Sub Dim MultiArray(1 To 3, 1 To 5) As Integer 15  
Slide 16: Homework  Due next week Thank you for your Attention! 16

   
Time on Slide Time on Plick
Slides per Visit Slide Views Views by Location
close
Please fill out the form below. You will be asked to make your payment to Myplick (Eastar Technologies) via Paypal. Your request will be processed within 24 hours after your submission.
 
Title (max 25 characters)
Link (placed on title)
Content (max 100 characters)
You have successfully submitted your ad request. Please send your payment to ericandlei@myplick.com via PAYPAL.
Ad submission failed. Please report the problem to ericandlei@myplick.com.