Microsoft Excel VBA Programming for the Absolute Beginner Second Edition phần 1 ppsx

51 350 0
Microsoft Excel VBA Programming for the Absolute Beginner Second Edition phần 1 ppsx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... immediately to the VBA IDE Now it’s time to make the Command Button control functional, and you can only do that by adding code to its code window Figure 1. 13 shows the code window for the Command Button control Microsoft Excel VBA Programming for the Absolute Beginner, Second Edition 14 The title bar The object list The procedure list The Editor Figure 1. 13 The VBA IDE showing the code window for the worksheet... there is always something helpful on-line, it’s just a matter of finding the right document Microsoft Excel VBA Programming for the Absolute Beginner, Second Edition 16 Figure 1. 14 The Color Changer program VBA Help Using the on-line help with VBA subject matter is identical to using the on-line help in Excel To access the VBA help, you must have the IDE open and active; otherwise, everything is the. .. 1. 4) Components of the IDE After opening the VBA IDE you may find yourself looking at a window similar to what is shown in Figure 1. 5 This figure shows the VBA IDE and some of the tools that can be used to create projects 6 Microsoft Excel VBA Programming for the Absolute Beginner, Second Edition Figure 1. 3 Accessing the VBA IDE from the Tools menu in Excel The View/Toolbars menu item The List representing... After the installation is complete, you may also need to change the macro security setting in Excel before you can run any VBA programs To change the macro security setting in Excel, do the following: 1 Select Tools, Macro, Security from the Excel application window (see Figure 1. 2) 2 Set the security level to Medium or Low to enable macros 4 Microsoft Excel VBA Programming for the Absolute Beginner, Second. .. Microsoft Excel VBA Programming for the Absolute Beginner, Second Edition Just below the Project Explorer window in Figure 1. 5 is the Properties window The Properties window displays a list of attributes or properties of the currently selected object in the Project Explorer window These properties are used to manipulate the behavior and appearance of the object to which they belong The properties of Sheet1... Programming for the Absolute Beginner, Second Edition The Design Mode toggle The Image control The Label control The Properties Window toggle View Code The Command Button control The Text Box control Figure 1. 10 The Control Toolbox Figure 1. 11 The Command Button control placed on a worksheet After the Command Button is placed on the worksheet, you will notice that it is selected and the application... requirements, then refer to this list while designing the algorithm(s) that will be followed when writing the program 18 Microsoft Excel VBA Programming for the Absolute Beginner, Second Edition The advantage you have when compiling a requirement list is that the source document can be used to build a protocol for testing the program I will follow this procedure for the chapter projects including the Colorful... to the Name property (the one without the parentheses around it) Delete the text entered to the right of the Name property and enter MySheet Figure 1. 7 illustrates how to find the Name property Chapter 1 • Visual Basic for Applications with Excel 9 The View Object icon The View Code icon The Sheet1 selection The Name property Figure 1. 7 Accessing the Name property of a worksheet Toggle back to Excel. .. object do not change until the code is executed 10 Microsoft Excel VBA Programming for the Absolute Beginner, Second Edition Finally, I will show you one more component of the VBA IDE If you look back at Figure 1. 5 you will also see a standard code window Windows such as these are used as containers for your program(s) This is where you type in the code for your program, so these windows are essentially... A view of the Colorful Stats spreadsheet is shown in Figure 1. 1 Microsoft Excel VBA Programming for the Absolute Beginner, Second Edition 2 In the Real World Event-driven programming refers to the creation of a program that is designed to run when the user generates a stimulus For example, a keystroke or a mouse click may trigger specific pieces of a program to execute The event-driven programming . . . . . . . . 14 7 vi Microsoft Excel VBA Programming for the Absolute Beginner, Second Edition Chapter 5 Basic Excel Objects . . . . . . . . . . . . . . . . . . . . . . . . . .14 9 Project: Battlecell 373 viii Microsoft Excel VBA Programming for the Absolute Beginner, Second Edition Chapter 9 Excel Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .377 Project: The Alienated. tool for designing sounds • cEdit Professional, an advanced, alternative text editor and IDE xii Microsoft Excel VBA Programming for the Absolute Beginner, Second Edition Visual Basic for Applications

Ngày đăng: 12/08/2014, 16:21

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan