这套书涉及软件在统计、财务、审计、会计、行政办公等工作中的实际应用,以实例为载体,着重介绍软件的操作功能和实践应用技巧。版本最新,是目前市场上第一套用Excel 2007 来讲述行政办公、财务、会计、审计应用的书。软件与职业应用相结合,契合市场需求。
主要介绍了Excel中VBA(Visual Basic Application)的基础知识,如何录制简单的宏,认识VBA中的对象、方法、属性、变量、常量、控制语句及宏的安全性设定等。从第3章开始,每章有一个实例,不同范例中以不同的方式使用控制语句、窗体、控件等基础知识,巩固并加深读者对VBA的理解和操控,从而达到根据个人实际需要充分发挥VBA的威力、提高工作效率的目的。.
本书精心设计的范例是作者多年工作经验的积累总结,非常实用,读者只要通过简单的“移植”,结合自己实际工作需要,修改代码中的相应内容,就可以轻松解决工作、生活、学习中所遇到的类似问题。
Expand Excel with VBA, and feel the power!
No one is better at revealing the secrets of Excel than "Mr. Spreadsheet" himself. This power-user's guide is packed with procedures, tips, and ideas for expanding Excel's capabilities with Visual Basic® for Applications. Excel 2007 has a few new tricks up its sleeve, and John Walkenbach helps you make the most of them all.
You'll learn to customize Excel UserForms, develop new utilities, use VBA with charts and PivotTables, and create event-handling applications. Work with VBA subprocedures and function procedures, facilitate interactions with other applications, build user-friendly toolbars, menus, and help systems, and much more. Get ready to make Excel do your bidding.
About the Author
John Walkenbach, arguably the foremost authority on Excel, has written hundreds of articles and created the award-winning Power Utility Pak. His 40-plus books include Excel 2007 Bible, Excel 2007 Formulas, and John Walkenbach's Favorite Excel Tips & Tricks, all published by Wiley. Visit his popular Spreadsheet Page at www.j-walk.com/ss.
Contents at a Glance
Preface vii
Part I: Some Essential Background
Chapter 1: Excel 2007: Where It Came From 3
Chapter 2: Excel in a Nutshell 15
Chapter 3: Formula Tricks and Techniques 47
Chapter 4: Understanding Excel’s Files 73
Part II: Excel Application Development
Chapter 5: What Is a Spreadsheet Application? 97
Chapter 6: Essentials of Spreadsheet Application Development 109
Part III: Understanding Visual Basic for Applications
Chapter 7: Introducing Visual Basic for Applications 133
Chapter 8: VBA Programming Fundamentals 189
Chapter 9: Working with VBA Sub Procedures 237
Chapter 10: Creating Function Procedures 275
Chapter 11: VBA Programming Examples and Techniques 315
Part IV: Working with UserForms
Chapter 12: Custom Dialog Box Alternatives 389
Chapter 13: Introducing UserForms 413
Chapter 14: UserForm Examples 449
Chapter 15: Advanced UserForm Techniques 487
Part V: Advanced Programming Techniques
Chapter 16: Developing Excel Utilities with VBA 533
Chapter 17: Working with Pivot Tables 555
Chapter 18: Working with Charts 571
Chapter 19: Understanding Excel’s Events 629
Chapter 20: Interacting with Other Applications 669
Chapter 21: Creating and Using Add-Ins 699
Part VI: Developing Applications
Chapter 22: Working with the Ribbon 727
Chapter 23: Working with Shortcut Menus 761
Excel 2007 Power Programming with VBA
Chapter 24: Providing Help for Your Applications 781
Chapter 25: Developing User-Oriented Applications 801
Part VII: Other Topics
Chapter 26: Compatibility Issues 817
Chapter 27: Manipulating Files with VBA 829
Chapter 28: Manipulating Visual Basic Components 859
Chapter 29: Understanding Class Modules 885
Chapter 30: Working with Colors 901
Chapter 31: Frequently Asked Questions about Excel Programming 929
Part VIII: Appendixes
Appendix A: Excel Resources Online 971
Appendix B: VBA Statements and Functions Reference 977
Appendix C: VBA Error Codes 989
Appendix D: What’s on the CD-ROM 993
Index |