Ask a question to Desklib · AI bot

Ask NowBETA

Intro. to VBA and the Object Model

Added on -2019-09-18

This exercise covers expressions that refer to objects in the Excel and Word object models. It includes finding useful websites for VBA programming. The exercise has a total of 25 points and is divided into five questions. The first two questions cover the Excel and Word object models, respectively. The third question is a multiple-choice question. The fourth question requires correcting an instruction. The fifth question requires finding three useful websites for VBA programming and explaining the rationale for the choices.
| 2 pages
| 580 words
| 174 views

Trusted by 2+ million users,
1000+ happy students everyday

HW 1: Intro. to VBA and the Object Model (25 pts. Total)1. (6 pts) In this exercise, you will write expressions that refer to some of the objects in the Excel object model, which is shown in the following figure.a.How many collections are shown in the above figure? b.For each of these collections, what type of objects are the members of this collection. For example, if the collection is people, the type of its member would be person?c.What expression can be used to refer to the running Application, i.e. Microsoft Excel?d.What expression can be used to refer to the Workbooks collection?e.What expression can be used to refer to the Workbook object whose name is “My Workbook.xlsm”? f.What expression can be used to refer to the second Worksheet object contained in the Workbook object whose name is “My Workbook.xlsm”?2. (6 pts) In this exercise, you will write references to the objects found in a portion of the Microsoft Word object model, which is shown in the following figure.a. How many collections are shown in the above figure? b. What expression can be used to refer to the running Application, i.e. Microsoft Word?c. What expression can be used to refer to the Documents collection?d. What expression can be used to refer to the Document whose name is “My Document.docx” in the Documents collection?e. What expression can be used to refer to the first sentence contained in the Document whose name is “My Document.docx”?f. What expression can be used to refer to the second word contained in the Document whose name is “My Document.docx”?

Found this document preview useful?

You are reading a preview
Upload your documents to download
or
Become a Desklib member to get accesss

Students who viewed this