© VBA JETPACK Introduction to VBA.

Post on 18-Jan-2016

289 views 0 download

Tags:

Transcript of © VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

VBAJETPACK

Introduction to VBA

© www.trumpexcel.com

• VBA stands for Visual Basic for Applications.

• VBA is a programming language used for Microsoft Office Applications. It can be used to automate tasks within Excel (and other applications).

• With VBA, you can do a lot of things that you can not otherwise do in Excel.

VBA….What?

© www.trumpexcel.com

• Automate a series of tasks (and run it with a single click or shortcut).

• Create functions that does not exist.

• Create Add-ins.

• Create Applications.

VBA at your service….What can you do with it?

© www.trumpexcel.com

• Sub / Procedure

• Functions

• Events

• Objects

• Variables

VBA Building Blocks

© www.trumpexcel.com

Object Oriented Programming

© www.trumpexcel.com

• Name - Sherlock Holmes• House No. - 221B • Street - Baker Street• City - London• Country - England

Object Oriented Programming

© www.trumpexcel.com

Object Oriented Programming

© www.trumpexcel.com

Object Oriented Programming

© www.trumpexcel.com

Object Oriented Programming

© www.trumpexcel.com

Object Oriented Programming

© www.trumpexcel.com

Object Oriented Programming

© www.trumpexcel.com

Object Oriented Programming

Apply red background colour to Cell A1, in the Worksheet (Sheet1), in the Workbook

(Test.xlsx) in Excel

© www.trumpexcel.com

Object Oriented Programming

Excel

© www.trumpexcel.com

Object Oriented Programming

WORKBOOK

© www.trumpexcel.com

Object Oriented Programming

WORKSHEET

© www.trumpexcel.com

Object Oriented Programming

RANGE (A1)

© www.trumpexcel.com

Object Oriented Programming

COLOR