HW 1: Intro. to VBA and the Object Model (25 pts. Total

Added on - 19 Sep 2019

  • 3

    Pages

  • 819

    Words

  • 149

    Views

  • 0

    Downloads

Trusted by +2 million users,
1000+ happy students everyday
Showing pages 1 to 1 of 3 pages
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 ofthe objects in the Excel object model, which is shown in the following figure.a.How manycollectionsare shown in the above figure? --2b.For each of these collections, what type of objects are the members ofthis collection. For example, if the collection is people, the type of itsmember would be person? --Members of Workbooks: WorkbookWorksheet is a member of Worksheetsc.What expression can be used to refer to the running Application, i.e.Microsoft Excel?Applicationd.What expression can be used to refer to the Workbooks collection?Application.Workbookse.What expression can be used to refer to the Workbook object whosename is “My Workbook.xlsm”?Application.Workbooks(“My Workbook”)f.What expression can be used to refer to the second Worksheet objectcontained in the Workbook object whose name is “MyWorkbook.xlsm”?Application.Workbooks(“My Workbook”).Worksheets(“Sheet2”)2. (6 pts)In this exercise, you will write references to the objects found in aportion of the Microsoft Word object model, which is shown in the followingfigure.
desklib-logo
You’re reading a preview
Preview Documents

To View Complete Document

Click the button to download
Subscribe to our plans

Download This Document