Macro Programming Guide Contents Introduction . 4 About this resource . 4 About additional resources . 5 Understanding automation . 8 What is automation? . 8 Which automation environments are supported? . 9 What is VBA?. .10 What is VSTA?. .12 What are the main elements of automation? . 13 What is an object model? . .14 What is a class?. .14 What is a collection? . .15 What is a property?. .15 What is a method? . .16 What is an event? . .16 What is an enumeration? . .16 What is a constant?. .16 How is automation coding structured? . 16 Declaring variables . .17 Using functions and subroutines. .18 Ending lines. .19 Including comments . .19 Allocating memory . .19 Defining scope . .20 Using Boolean comparison and assignment . .20 Using logical and bitwise operators . .21 Providing message boxes and input boxes . .22 Referencing objects . .22 Referencing collections . .23 Using object shortcuts. .25 Providing event handlers. .25 Getting started with macros . 28 Setting up the automation feature . 28 To install the VBA and VSTA features . .28 To specify VBA options . .28 Using the Macros toolbar . 29 Using the Macro Manager docker . 30 Using the Macro Editor . 31 Using the Project Explorer . .32 Using the Code window . .33 Using the Properties window . .37 Using the Macro Editor toolbars . .37 Using the Object Browser . .38 Using the VSTA Editor . 43 Creating macros . 45 Creating macro projects . 45 Macro Programming Guide Contents 1 To create a macro project . .46 To add a dialog box to a macro project. .47 To add a code module to a macro project. .47 To add a class module to a macro project. .48 Writing macros . 48 To add a macro to a macro project . .48 To edit a VBA macro . .49 To delete a VBA macro . .49 Recording macros . ..
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages166 Page
-
File Size-