11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introducing VBA<br />

In This Chapter<br />

● An introduction to Visual Basic for Applications (Excel’s programming language)<br />

● How to use the Visual Basic Editor<br />

● How to work in the code windows of the Visual Basic Editor<br />

599<br />

22<br />

This chapter introduces you to Visual Basic for Applications (VBA). VBA is Excel’s programming<br />

language, and it is used to create custom worksheet functions. Before you can create custom<br />

functions by using VBA, you need to have some basic background knowledge of VBA as well as<br />

some familiarity with the Visual Basic Editor.<br />

About VBA<br />

VBA is best thought of as Microsoft’s common application scripting language. VBA is included<br />

with most Office applications, and it’s also available in applications from other vendors. In Excel,<br />

VBA has two primary uses:<br />

Automating spreadsheet tasks<br />

Creating custom functions that you can use in your worksheet formulas<br />

Excel also includes another way of creating custom functions by using the XLM macro<br />

language. XLM is pretty much obsolete, but it is still supported for compatibility purposes.<br />

This book completely ignores the XLM language and focuses on VBA. By the<br />

way, the XLM macro language has absolutely nothing to do with XML, which is a markup<br />

language for storing structured data.<br />

VBA is a complex topic — far too complex to be covered completely in this book. Because this<br />

book deals with formulas, I hone in on one important (and useful) aspect of VBA — creating custom<br />

worksheet functions. You can use a custom worksheet function (sometimes known as a userdefined<br />

function) in formulas.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!