© VBA JETPACK Introduction to VBA.

17
© www.trumpexcel.com VBA JETPACK Introduction to VBA

Transcript of © VBA JETPACK Introduction to VBA.

Page 1: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

VBAJETPACK

Introduction to VBA

Page 2: ©  VBA JETPACK 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?

Page 3: ©  VBA JETPACK Introduction to VBA.

© 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?

Page 4: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

• Sub / Procedure

• Functions

• Events

• Objects

• Variables

VBA Building Blocks

Page 5: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

Object Oriented Programming

Page 6: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

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

Object Oriented Programming

Page 7: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

Object Oriented Programming

Page 8: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

Object Oriented Programming

Page 9: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

Object Oriented Programming

Page 10: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

Object Oriented Programming

Page 11: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

Object Oriented Programming

Page 12: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

Object Oriented Programming

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

(Test.xlsx) in Excel

Page 13: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

Object Oriented Programming

Excel

Page 14: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

Object Oriented Programming

WORKBOOK

Page 15: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

Object Oriented Programming

WORKSHEET

Page 16: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

Object Oriented Programming

RANGE (A1)

Page 17: ©  VBA JETPACK Introduction to VBA.

© www.trumpexcel.com

Object Oriented Programming

COLOR