Читать книгу Excel VBA Programming For Dummies - Dick Kusleika - Страница 83
Automatically listing properties and methods
ОглавлениеChapter 3 introduces you to a handy feature called Auto List Members. This feature provides a list of properties and methods as you type. Figure 4-5 shows an example for the Workbooks collection.
FIGURE 4-5: The Auto List Members feature helps you identify properties and methods for an object.
After typing the dot after workbooks, the VBE volunteers to help by displaying a list of properties and methods for that collection. Typing the letter (like the letter c) narrows the list to items that begin with that letter. With each letter you type, the VBE further narrows the list of choices. Highlight the item you need, press Tab, and voilà! You’ve eliminated some typing — and also ensured that the property or method was spelled correctly.