Description
Writing Excel Macros offers a solid introduction to writing VBA macros and programs in Excel and shows you how to get more power out of Excel at the programming level. Learn how to get the most out of this formidable application as you focus on programming languages, the Visual Basic Editor, handling code, and the Excel object model.
Full Description
Microsoft Excel is an enormously powerful and flexible application. Yet despite its powerful feature set, there is a great deal that Excel either does not allow you to do or does not allow you to do easily through its user interface. And in spite of Excel's reputation as the most widely used spreadsheet application, the majority of its users do not venture beyond the basics of creating spreadsheets and perhaps dabbling with macros. Consequently, these users aren't getting all the power out of this formidable application.
With
Writing Excel Macros you will learn there are many things you can do at the programming level that you cannot do at the user-interface level, that is, with the menus and dialog boxes of Excel. And learning how to get more power out of Excel will mean you can be more effective in your work.
Writing Excel Macros offers a solid introduction to writing VBA macros and programs and provides Excel users and programmers unfamiliar with the Excel object model with an excellent overview to writing VBA macros and programs. The essentials of the VBA language and the Excel object model are covered so that, when you have finished the book, you will know enough about Excel VBA to begin creating effective working programs.
In particular, the book focuses on:
- Programming languages. Brief overview of programming and programming languages, as well as information on Variables, Data Types, and Constants, Functions and Subroutines, and more.
- The Visual Basic Editor. Before tackling the basics of the programming language that Excel uses, the reader is acquainted with the VBA environment--the Visual Basic Editor.
- Handling your code. An overview of where to store your code and how to activate it from an Excel spreadsheet.
- The Excel object model. An in-depth overview of the Excel object model, including the Application, Workbook, Worksheet, and Range objects.
- Appendices. Details on the Shape object; getting the Installed Printers; Command Bar Controls and Face IDs; programming Excel from another application; and more.
The information in this book is written in a succinct, practical manner that is characteristic of Steve Roman's straightforward approach. Readers will find useful examples throughout the book that deal with specific programming problems and allow them to gain hands-on experience in the VBA environment. Whether your interest in Excel programming is so you can be more effective in your work, or you want to learn how to write Excel programs for others to use, this book offers a solid introduction to writing VBA macros and programs and shows you how to get more power out of Excel at the programming level.
Colophon
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Writing Excel Macros is a bluejay (Cyanocitta cristata), a vociferous, aggressive bird common in the eastern half of the United States and southern Canada. The blue-crested jay is also an agile flyer and occasional nest-robber. The term "bluejay" is also applied to the Steller's jay (Cyanocitta stelleri), a larger, darker jay common in much of the western U.S. and Canada, as well as several other species. Bluejays eat primarily nuts, seeds, and insects, sometimes planting acorns in the ground, thus helping tree growth. Known for their loud, harsh, and easily identifiable calls, bluejays (related to crows and ravens) often spoil the hunting forays of other animals by warning potential prey. Bluejays are bright blue, white, and black, with both sexes similar in appearance. They are about 10inches in length, and build large tree nests about 25 feet off the ground, into which are laid 3spotted olive-colored eggs. The male is very attentive during the nesting periods. Jays are sociable and frequently travel in groups ranging from a mating pair to a larger flock. Clairemarie Fisher O'Leary was the production editor and copyeditor for Writing Excel Macros ; Sheryl Avruch was the production manager; Jeffrey Liggett, Sarah Jane Shangraw, and John Files provided quality control. Robert Romano created the illustrations using Adobe Photoshop 5 and Macromedia FreeHand 8. Mike Sierra provided FrameMaker technical support. Ruth Rautenberg wrote the index. Hanna Dyer designed the cover of this book, based on a series design by Edie Freedman. The image is a 19th-century engraving from the Dover Pictorial Archive. The cover layout was produced by Kathleen Wilson using QuarkXpress 3.3 and the ITC Garamond font. The inside layout was designed by Alicia Cech, based on a series design by Nancy Priest and implemented in FrameMaker 5.5.6 by Mike Sierra. The text and heading fonts are ITC Garamond Light and Garamond Book. This colophon was written by Nancy Kotary.
Hanna Dyer designed the cover of this book, based on a series designed by Edie Freedman. The image is based on a 19th-Century engraving from the Dover Pictorial Archive. The cover layout was produced by Kathleen Wilson using QuarkXpress 3.3 and the ITC Garamond font. The inside layout was designed by Alicia Cech, based on a series design by Nancy Priest.