... VII: Appendixes Appendix A: VBA Statements and Functions Reference Appendix B: VBA Error Codes Appendix C: This Book's Website Excel2013PowerProgrammingwithVBA Published by John Wiley & ... Introduction Welcome to Excel2013PowerProgrammingwithVBA If your job involves developing Excel workbooks that others will use — or if you simply want to get the most out of Excel — you've picked ... ® 2013PowerProgrammingExcelwithVBA Table of Contents Introduction Topics Covered What You Need to Know What You Need to Have Conventions in This Book Excel commands Visual...
... Excel 2010 PowerProgrammingwithVBA by John Walkenbach Excel 2010 PowerProgrammingwithVBA Published by Wiley Publishing, Inc 111 River ... 990 eBook version of Excel 2010 PowerProgrammingwithVBA 990 Sample files for Excel 2010 PowerProgrammingwithVBA 990 Troubleshooting ... INTRODUCTION Welcome to Excel 2010 PowerProgrammingwithVBA If your job involves developing Excel workbooks that others will use — or if you simply want to get the most out of Excel — you’ve come...
... frequently asked Excelprogramming questions Reader Level Intermediate to Advanced Shelving Category Programming/ Spreadsheets www.mandtbooks.com Walkenbach Excel 2002 PowerProgrammingwithVBA A R E ... ,!7IA7G4-fehj h!:p;o;t;T;T CD-ROM included Excel 2002 PowerProgrammingwithVBA John Walkenbach Author of Excel 2002 Bible “An outstanding reference If you use Excel, you need this book.” — Microsoft ... magazine on the previous edition Power Utility Pak trial and more on CD-ROM Visit us at mandtbooks.com 4799-2 FM.F 6/11/01 1:12 PM Page i Excel 2002 PowerProgrammingwithVBA 4799-2 FM.F 6/11/01 1:12...
... add-in in conjunction with a standard workbook ✦ Version of Excel Will your Excel application be used withExcel 2002 only? WithExcel 2000 or Excel 97? What about Excel 95 and Excel 5? Will it also ... workbook This value is one of those shown in the following table: Value Excel Version 16 Excel 29 Excel 33 Excel 39 Excel 5, 95 -4143 Excel 97, 2000, 2002 67 4799-2 ch04.F 68 6/11/01 9:28 AM Page 68 ... Windows directory in a file named Excel1 0.xlb (the filename is different in a network environment) XLC An Excel chart file (obsolete beginning withExcel 5) XLL An Excel link library file For example,...
... BadComments() 4799-2 ch08.F 6/11/01 9:30 AM Page 179 Chapter ✦ VBAProgramming Fundamentals Entering VBA Code VBA code, which resides in a VBA module, consists of instructions The accepted practice ... discuss in Chapter 7, contains a list of all Excel and VBA constants In the VBE, press F2 to bring up the Object Browser Working with strings Like Excel, VBA can manipulate both numbers and text ... 6/11/01 9:30 AM Page 193 Chapter ✦ VBAProgramming Fundamentals The range of dates that VBA can handle is much larger than Excel s own date range, which begins with January 1, 1900 Therefore, be...
... response to the InputBox function was ExcelPowerProgrammingWithVBA The MsgBox function displays the reversed text Figure 10-2: Using a custom function in a VBA procedure Analyzing the custom ... application will not run withExcel — even if you save the workbook in the Excel format — because Excel is a 16-bit application Excel 97 and later versions are 32-bit applications Excel 2002 is a 32-bit ... using VBA to work with ranges Examples of using VBA to work with workbooks and sheets Custom functions for use in your VBA procedures and in worksheet formulas Examples of miscellaneous VBA tricks...
... compatible withExcel and Excel 95) ✦ Control Toolbox toolbar These are ActiveX controls These controls are a subset of those that are available for use on UserForms These controls work only withExcel ... compatibility purposes, Excel 97 and later still support Excel 5/95 dialog sheets The good news is that its much easier to work with UserForms, and they offer lots of new capabilities Excel makes it relatively ... only in English language versions of Excel For applications that will be used with other language versions of Excel, you can use the FindControl method, along with the Id property for the command...
... Chapter 16 Developing Excel Utilities withVBA Chapter 17 Working with Pivot Tables Chapter 18 Working with Charts Chapter 19 Understanding Excel s Events Chapter 20 Interacting with Other Applications ... Using VBA to Develop Utilities When I received the beta version of Excel 5, I was blown away by VBA s potential VBA was light-years ahead of Excel s powerful XLM macro language, and it made Excel ... Excel Utilities withVBA Figure 16-10: The author’s Power Utility Pak contains many useful Excel utilities Summary In this chapter, I discussed why you might want to develop Excel utilities with...
... 575 Chapter 19 ✦ Understanding Excel s Events Programming Events in Older Versions of Excel Versions of Excel prior to Office 97 also supported events, but the programming techniques required ... calculated in VBA and transferred directly to the Values and XValues properties of the chart’s Series object 4799-2 ch18.F 6/11/01 9:40 AM Page 569 Chapter 18 ✦ Working with Charts Drawing with an ... worksheet Excel is capable of monitoring a wide variety of events, and executing your VBA code when a particular event occurs Following are just a few examples of the types of events that Excel can...
... free-floating An overview of Excel s menu system Types of menu modifications you can make How to manipulate menus withVBA Various menu programming techniques used with events A useful (and very ... of Excel s built-in menus, such as the Tools menu WithExcel and Excel 95, assigning a macro to a new menu item on the Tools menu was easy For some reason, this feature was removed, beginning with ... toolbars withVBA is amazingly fast Manipulating Toolbars and Buttons Manually Excel makes it easy for you to create new toolbars and modify existing toolbars In fact, you may not even have to use VBA...
... Formats Excel version Constant Value Excel 2.1 xlExcel2 16 Excel 3.0 xlExcel3 29 Excel 4.0 xlExcel4Workbook 35 Excel xlExcel5 39 Excel 95/97 xlExcel9795 43 Excel in HTML format xlHtml 44 Excel ... compatibility withExcel 95, Excel 97, and Excel 2000, you should use Excel 95 for development, and then test thoroughly using the other versions If your application must support Excel 95, you ... German VBA language considerations In general, you need not be concerned with the language that you write your VBA code in Excel uses two object libraries: the Excel object library and the VBA object...
... server Table A-1 Microsoft.coms Excel- Related Newsgroups Newsgroup Topic microsoft.public excel. programmingProgrammingExcelwithVBA or XLM macros microsoft.public excel. 123quattro Converting 1-2-3 ... microsoft.public excel. charting Building charts withExcel microsoft.public excel. printing Printing withExcel microsoft.public excel. queryDAO Using Microsoft Query and Data Access Objects (DAO) in Excel ... Appendix B VBA Statements and Functions Reference Invoking Excel Functions in VBA Instructions If a VBA function thats equivalent to one you use in Excel is not available, you can use Excels worksheet...
... frequently asked Excelprogramming questions Reader Level Intermediate to Advanced Shelving Category Programming/ Spreadsheets www.mandtbooks.com Walkenbach Excel 2002 PowerProgrammingwithVBA A R E ... ,!7IA7G4-fehj h!:p;o;t;T;T CD-ROM included Excel 2002 PowerProgrammingwithVBA John Walkenbach Author of Excel 2002 Bible “An outstanding reference If you use Excel, you need this book.” — Microsoft ... magazine on the previous edition Power Utility Pak trial and more on CD-ROM Visit us at mandtbooks.com 4799-2 FM.F 6/11/01 1:12 PM Page i Excel 2002 PowerProgrammingwithVBA 4799-2 FM.F 6/11/01 1:12...
... add-in in conjunction with a standard workbook ✦ Version of Excel Will your Excel application be used withExcel 2002 only? WithExcel 2000 or Excel 97? What about Excel 95 and Excel 5? Will it also ... workbook This value is one of those shown in the following table: Value Excel Version 16 Excel 29 Excel 33 Excel 39 Excel 5, 95 -4143 Excel 97, 2000, 2002 67 4799-2 ch04.F 68 6/11/01 9:28 AM Page 68 ... Windows directory in a file named Excel1 0.xlb (the filename is different in a network environment) XLC An Excel chart file (obsolete beginning withExcel 5) XLL An Excel link library file For example,...
... BadComments() 4799-2 ch08.F 6/11/01 9:30 AM Page 179 Chapter ✦ VBAProgramming Fundamentals Entering VBA Code VBA code, which resides in a VBA module, consists of instructions The accepted practice ... discuss in Chapter 7, contains a list of all Excel and VBA constants In the VBE, press F2 to bring up the Object Browser Working with strings Like Excel, VBA can manipulate both numbers and text ... 6/11/01 9:30 AM Page 193 Chapter ✦ VBAProgramming Fundamentals The range of dates that VBA can handle is much larger than Excel s own date range, which begins with January 1, 1900 Therefore, be...
... response to the InputBox function was ExcelPowerProgrammingWithVBA The MsgBox function displays the reversed text Figure 10-2: Using a custom function in a VBA procedure Analyzing the custom ... application will not run withExcel — even if you save the workbook in the Excel format — because Excel is a 16-bit application Excel 97 and later versions are 32-bit applications Excel 2002 is a 32-bit ... using VBA to work with ranges Examples of using VBA to work with workbooks and sheets Custom functions for use in your VBA procedures and in worksheet formulas Examples of miscellaneous VBA tricks...
... compatible withExcel and Excel 95) ✦ Control Toolbox toolbar These are ActiveX controls These controls are a subset of those that are available for use on UserForms These controls work only withExcel ... compatibility purposes, Excel 97 and later still support Excel 5/95 dialog sheets The good news is that its much easier to work with UserForms, and they offer lots of new capabilities Excel makes it relatively ... only in English language versions of Excel For applications that will be used with other language versions of Excel, you can use the FindControl method, along with the Id property for the command...
... Chapter 16 Developing Excel Utilities withVBA Chapter 17 Working with Pivot Tables Chapter 18 Working with Charts Chapter 19 Understanding Excel s Events Chapter 20 Interacting with Other Applications ... Using VBA to Develop Utilities When I received the beta version of Excel 5, I was blown away by VBA s potential VBA was light-years ahead of Excel s powerful XLM macro language, and it made Excel ... Excel Utilities withVBA Figure 16-10: The author’s Power Utility Pak contains many useful Excel utilities Summary In this chapter, I discussed why you might want to develop Excel utilities with...
... 575 Chapter 19 ✦ Understanding Excel s Events Programming Events in Older Versions of Excel Versions of Excel prior to Office 97 also supported events, but the programming techniques required ... calculated in VBA and transferred directly to the Values and XValues properties of the chart’s Series object 4799-2 ch18.F 6/11/01 9:40 AM Page 569 Chapter 18 ✦ Working with Charts Drawing with an ... worksheet Excel is capable of monitoring a wide variety of events, and executing your VBA code when a particular event occurs Following are just a few examples of the types of events that Excel can...
... free-floating An overview of Excel s menu system Types of menu modifications you can make How to manipulate menus withVBA Various menu programming techniques used with events A useful (and very ... of Excel s built-in menus, such as the Tools menu WithExcel and Excel 95, assigning a macro to a new menu item on the Tools menu was easy For some reason, this feature was removed, beginning with ... toolbars withVBA is amazingly fast Manipulating Toolbars and Buttons Manually Excel makes it easy for you to create new toolbars and modify existing toolbars In fact, you may not even have to use VBA...