... workbook.
Excel 97
In Excel 97, Microsoft introduced some dramatic changes in the VBA interface and some changes in the
Excel object model. From Excel 97 onward, modules are not visible in the Excel ... rights. Side-by-
side comparison of workbooks was also introduced.
Excel 2007
Excel 2007 represents the greatest change in Excel since Excel 97. The most impact will be made by the
new user interface, ... 634
Appendix A: Excel2007 Object Model 635
Appendix B: VBE Object Model 971
Appendix C:
Office 2007 Object Model 995
Index 1079
02_046432 ftoc.qxp 2/16/07 9:52 PM Page xx
Excel
đ
2007VBA
Programmers...
... chapter covers the following topics:
❑ The Excel macro recorder
❑ User-defined functions
❑ The Excel object model
❑ VBAprogramming concepts
Excel VBA is a programming application that allows you ... knowledge of the VBA lan-
guage. Many Excel users record and run macros and feel no need to learn about VBA.
04_046432 ch01.qxp 2/16/07 9:53 PM Page 1
xxviii
Introduction
Excel 2007VBA Programmer’s ... Access Toolbar
In versions of Excel prior to Excel 2007, you can attach macros to toolbar buttons. Because toolbars and
menus have been replaced by the Ribbon in Excel 2007, this ability no longer...
... Write a function procedure in VBA that returns the square root of a number.
The function should be made available to the Excel application.
3. Write a sub procedure in VBA that either adds, subtracts, ... Finally, you can create your own function
procedures in VBA.
Creating Your Own VBA Functions
The basic syntax for creating a function procedure in VBA is as follows:
Private/Public
Function FunctionName(
paramter ... in Excel. Returning to the Excel application and entering the formula
=PowerDB(2,8) into any worksheet cell will return the value 256 to that cell. The
PowerDB function is even listed in Excel s...