Details

Excel 2019 Power Programming with VBA


Excel 2019 Power Programming with VBA


1. Aufl.

von: Michael Alexander, Dick Kusleika

36,99 €

Verlag: Wiley
Format: EPUB
Veröffentl.: 25.04.2019
ISBN/EAN: 9781119514916
Sprache: englisch
Anzahl Seiten: 784

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<b>Maximize your Excel experience with VBA</b> <p><i>Excel 2019 Power Programming with VBA</i> is fully updated to cover all the latest tools and tricks of Excel 2019. Encompassing an analysis of Excel application development and a complete introduction to Visual Basic for Applications (VBA), this comprehensive book presents all of the techniques you need to develop both large and small Excel applications. Over 800 pages of tips, tricks, and best practices shed light on key topics, such as the Excel interface, file formats, enhanced interactivity with other Office applications, and improved collaboration features. </p> <p>Understanding how to leverage VBA to improve your Excel programming skills can enhance the quality of deliverables that you produce—and can help you take your career to the next level.</p> <ul> <li>Explore fully updated content that offers comprehensive coverage through over 900 pages of tips, tricks, and techniques</li> <li>Leverage templates and worksheets that put your new knowledge in action, and reinforce the skills introduced in the text</li> <li>Improve your capabilities regarding Excel programming with VBA, unlocking more of your potential in the office</li> </ul> <p><i>Excel 2019 Power Programming with VBA</i> is a fundamental resource for intermediate to advanced users who want to polish their skills regarding spreadsheet applications using VBA.</p>
<p>Introduction xxxiii</p> <p><b>Part I: Introduction to Excel VBA 1</b></p> <p><b>Chapter 1: Essentials of Spreadsheet Application Development 3</b></p> <p>What Is a Spreadsheet Application? 3</p> <p>Steps for Application Development 4</p> <p>Determining User Needs 5</p> <p>Planning an Application That Meets User Needs 6</p> <p>Determining the Most Appropriate User Interface 7</p> <p>Concerning Yourself with the End User 12</p> <p>Other Development Issues 17</p> <p><b>Chapter 2: Introducing Visual Basic for Applications 19</b></p> <p>Getting a Head Start with the Macro Recorder 19</p> <p>Working with the Visual Basic Editor 32</p> <p>VBA Fundamentals 43</p> <p>Deep Dive: Working with Range Objects 48</p> <p>Essential Concepts to Remember 52</p> <p>Don’t Panic–You Are Not Alone 54</p> <p><b>Chapter 3: VBA Programming Fundamentals 61</b></p> <p>VBA Language Elements: An Overview 61</p> <p>Comments 63</p> <p>Variables, Data Types, and Constants 65</p> <p>Assignment Statements 76</p> <p>Arrays 78</p> <p>Declaring Arrays 78</p> <p>Object Variables 80</p> <p>User-Defined Data Types 81</p> <p>Built-in Functions 82</p> <p>Manipulating Objects and Collections 85</p> <p>Controlling Code Execution 88</p> <p><b>Chapter 4: Working with VBA Sub Procedures 105</b></p> <p>About Procedures 105</p> <p>Executing Sub Procedures 108</p> <p>Passing Arguments to Procedures 119</p> <p>Error-Handling Techniques 123</p> <p>A Realistic Example That Uses Sub Procedures 127</p> <p>Utility Availability 140</p> <p>Evaluating the Project 141</p> <p><b>Chapter 5: Creating Function Procedures 143</b></p> <p>Sub Procedures vs. Function Procedures 143</p> <p>Why Create Custom Functions? 144</p> <p>An Introductory Function Example 144</p> <p>Function Procedures 148</p> <p>Function Arguments 153</p> <p>Function Examples 153</p> <p>Emulating Excel’s SUM Function 167</p> <p>Extended Date Functions 170</p> <p>Debugging Functions 172</p> <p>Dealing with the Insert Function Dialog Box 173</p> <p>Using Add-Ins to Store Custom Functions 178</p> <p>Using the Windows API 178</p> <p><b>Chapter 6: Understanding Excel’s Events 183</b></p> <p>What You Should Know About Events 183</p> <p>Getting Acquainted with Workbook-Level Events 189</p> <p>Examining Worksheet Events 197</p> <p>Monitoring with Application Events 206</p> <p><b>Chapter 7: VBA Programming Examples and Techniques 217</b></p> <p>Learning by Example 217</p> <p>Working with Ranges 218</p> <p>Working with Workbooks and Sheets 246</p> <p>VBA Techniques 251</p> <p>Some Useful Functions for Use in Your Code 258</p> <p>Some Useful Worksheet Functions 263</p> <p>Windows API Calls 278</p> <p><b>Part II: Advanced VBA Techniques 287</b></p> <p><b>Chapter 8: Working with Pivot Tables 289</b></p> <p>An Introductory Pivot Table Example 289</p> <p>Creating a More Complex Pivot Table 295</p> <p>Creating Multiple Pivot Tables 299</p> <p>Creating a Reverse Pivot Table 302</p> <p><b>Chapter 9: Working with Charts 305</b></p> <p>Getting the Inside Scoop on Charts 305</p> <p>Creating an Embedded Chart 308</p> <p>Creating a Chart on a Chart Sheet 309</p> <p>Modifying Charts 309</p> <p>Using VBA to Activate a Chart 310</p> <p>Moving a Chart 311</p> <p>Using VBA to Deactivate a Chart 312</p> <p>Determining Whether a Chart Is Activated 313</p> <p>Deleting from the ChartObjects or Charts Collection 313</p> <p>Looping Through All Charts 314</p> <p>Sizing and Aligning ChartObjects 317</p> <p>Creating Lots of Charts 318</p> <p>Exporting a Chart 321</p> <p>Changing the Data Used in a Chart 322</p> <p>Using VBA to Display Custom Data Labels on a Chart 328</p> <p>Displaying a Chart in a UserForm 331</p> <p>Understanding Chart Events 334</p> <p>Discovering VBA Charting Tricks 340</p> <p>Working with Sparkline Charts 347</p> <p><b>Chapter 10: Interacting with Other Applications 351</b></p> <p>Understanding Microsoft Office Automation 351</p> <p>Automating Access from Excel 354</p> <p>Automating Word from Excel 356</p> <p>Automating PowerPoint from Excel 360</p> <p>Automating Outlook from Excel 365</p> <p>Starting Other Applications from Excel 369</p> <p><b>Chapter 11: Working with External Data and Files 377</b></p> <p>Working with External Data Connections 377</p> <p>Power Query Basics 377</p> <p>Using ADO and VBA to Pull External Data 390</p> <p>Working with Text Files 397</p> <p>Text File Manipulation Examples 401</p> <p>Performing Common File Operations 405</p> <p>Zipping and Unzipping Files 413</p> <p><b>Part III: Working with UserForms 417</b></p> <p><b>Chapter 12: Leveraging Custom Dialog Boxes 419</b></p> <p>Alternatives to UserForms 419</p> <p>Using an Input Box 419</p> <p>Using the VBA MsgBox Function 426</p> <p>Using the Excel GetOpenFilename Method 431</p> <p>Using the Excel GetSaveAsFilename Method 434</p> <p>Prompting for a Folder 435</p> <p>Displaying Excel’s Built-in Dialog Boxes 435</p> <p>Displaying a Data Form 438</p> <p><b>Chapter 13: Introducing UserForms 441</b></p> <p>How Excel Handles Custom Dialog Boxes 441</p> <p>Inserting a New UserForm 442</p> <p>Adding Controls to a UserForm 443</p> <p>Toolbox Controls 443</p> <p>Adjusting UserForm Controls 448</p> <p>Adjusting a Control’s Properties 450</p> <p>Displaying a UserForm 456</p> <p>Closing a UserForm 458</p> <p>Creating a UserForm: An Example 460</p> <p>Referencing UserForm Controls 473</p> <p>Customizing the Toolbox 474</p> <p>Creating UserForm Templates 477</p> <p>A UserForm Checklist 478</p> <p><b>Chapter 14: Looking at UserForm Examples 479</b></p> <p>Creating a UserForm “Menu” 479</p> <p>Selecting Ranges from a UserForm 481</p> <p>Creating a Splash Screen 483</p> <p>Disabling a UserForm’s Close Button 486</p> <p>Changing a UserForm’s Size 487</p> <p>Zooming and Scrolling a Sheet from a UserForm 488</p> <p>Exploring ListBox Techniques 490</p> <p>Using the MultiPage Control in a UserForm 512</p> <p>Using an External Control 513</p> <p>Animating a Label 516</p> <p><b>Chapter 15: Implementing Advanced UserForm Techniques 519</b></p> <p>A Modeless Dialog Box 519</p> <p>Displaying a Progress Indicator 523</p> <p>Creating Wizards 534</p> <p>Emulating the MsgBox Function 541</p> <p>A UserForm with Movable Controls 545</p> <p>A UserForm with No Title Bar 546</p> <p>Simulating a Toolbar with a UserForm 548</p> <p>Emulating a Task Pane with a UserForm 550</p> <p>A Resizable UserForm 551</p> <p>Handling Multiple UserForm Controls with One Event Handler 556</p> <p>Selecting a Color in a UserForm 559</p> <p>Displaying a Chart in a UserForm 561</p> <p>Making a UserForm Semitransparent 562</p> <p>A Puzzle on a UserForm 563</p> <p>Video Poker on a UserForm 565</p> <p><b>Part IV: Developing Excel Applications 567</b></p> <p><b>Chapter 16: Creating and Using Add-Ins 569</b></p> <p>What Is an Add-In? 569</p> <p>Understanding Excel’s Add-in Manager 572</p> <p>Creating an Add-In 574</p> <p>An Add-In Example 575</p> <p>Comparing XLAM and XLSM Files 581</p> <p>Manipulating Add-Ins with VBA 587</p> <p>Optimizing the Performance of Add-Ins 593</p> <p>Special Problems with Add-Ins 594</p> <p><b>Chapter 17: Working with the Ribbon 599</b></p> <p>Ribbon Basics 599</p> <p>Customizing the Ribbon 601</p> <p>Creating a Custom Ribbon 606</p> <p>Using VBA with the Ribbon 628</p> <p>Creating an Old-Style Toolbar 632</p> <p><b>Chapter 18: Working with Shortcut Menus 637</b></p> <p>CommandBar Overview 637</p> <p>Referring to Controls in a CommandBar 640</p> <p>Properties of CommandBar Controls 641</p> <p>Displaying All Shortcut Menu Items 642</p> <p>Using VBA to Customize Shortcut Menus 644</p> <p>Resetting a shortcut menu 646</p> <p>Shortcut Menus and Events 654</p> <p><b>Chapter 19: Providing Help for Your Applications 659</b></p> <p>Help for Your Excel Applications 659</p> <p>Help Systems That Use Excel Components 661</p> <p>Displaying Help in a Web Browser 670</p> <p>Using the HTML Help System 672</p> <p><b>Chapter 20: Leveraging Class Modules 679</b></p> <p>What Is a Class Module? 679</p> <p>Creating a NumLock Class 681</p> <p>Coding Properties, Methods, and Events 685</p> <p>Exposing a QueryTable Event 688</p> <p>Creating a Class to Hold Classes 692</p> <p><b>Chapter 21: Understanding Compatibility Issues 699</b></p> <p>What Is Compatibility? 699</p> <p>Types of Compatibility Problems 699</p> <p>Avoid Using New Features 701</p> <p>But Will It Work on a Mac? 703</p> <p>Dealing with 64-Bit Excel 704</p> <p>Creating an International Application 705</p> <p>Multilanguage Applications 707</p> <p>VBA Language Considerations 708</p> <p>Using Local Properties 708</p> <p>Identifying System Settings 709</p> <p>Date and Time Settings 711</p> <p><b>Part V: Appendix 713</b></p> <p>Appendix: VBA Statements and Functions Reference 715</p> <p>Index 725</p>
<p><b>MICHAEL ALEXANDER</b> is a Microsoft Certified Application Developer and author of several books on Microsoft Access and Excel. He runs a free tutorial site at datapigtechnologies.com. <p><b>DICK KUSLEIKA</b> has been helping users get the most out of Microsoft Office products for more than twenty-five years through online forums, blogging, books, and conferences.
<p><b>Become a power user with VBA</b> <p>Take your Excel skills to the next level by harnessing the power of the VBA language. This comprehensive resource will help you automate data processes and develop full featured Excel programs. Fully updated for the newest release of Excel, this one-of-a-kind resource presents everything you need to develop both large and small Excel applications. <p>This book was designed with you in mind, giving you straight facts without hype or unnecessary explanations. This book offers tips, tricks and practical examples complete with all the code and sample templates you need to start your journey from humble data analyst to Excel programming pro. <p><b>THIS BOOK SHOWS YOU HOW TO:</b> <ul> <li>Go beyond recording simple macros</li> <li>Dynamically manipulate workbooks and worksheets</li> <li>Automate pivot table and chart features</li> <li>Manage external data and wrangle external files</li> <li>Send emails directly from Excel</li> <li>Create your own Excel Ribbon interface</li> <li>Develop and distribute your own Excel Add-ins</li> </ul>

Diese Produkte könnten Sie auch interessieren:

AutoCAD 2013 For Dummies
AutoCAD 2013 For Dummies
von: Bill Fane, David Byrnes
PDF ebook
23,99 €
IBM Workplace Services Express For Dummies
IBM Workplace Services Express For Dummies
von: Stephen R. Londergan, Michael Loria
PDF ebook
16,99 €
Building Flash Web Sites For Dummies
Building Flash Web Sites For Dummies
von: Doug Sahlin
PDF ebook
18,99 €