Download doc - VBA 150706 Lab Manual

Transcript
Page 1: VBA 150706 Lab Manual

CP440 –Web ProgrammingCredit:5 (L=4, P=2)

Lab manual

Page 2: VBA 150706 Lab Manual

Lab1 Introduction to VBA

How to install VBA?

Introduction to Visual Basic Editor

Lab 2 Introduction to Macros

How to record macro, edit macro and execute macro

Examples of macros:1. Display a message box which display “Welcome” text.2. Count number of selected rows and columns3. Add values of two different cells and display the addition to

the third cell.

Lab 3 Variables, Constants and Expressions in VBA

Create a simple calculator. (Take input from the input box)

Lab 4,5: Conditional Branching ,Looping and Array

Write a program using VB controls to Sort the Element of an Array in Ascending or Descending order

Do the same as above only insert and delete data manually from the list.


Recommended