Question: (Note: This exercise and the next one are adapted from those in the second edition, which asked you to autoformat a range. Starting with 2007,

(Note: This exercise and the next one are adapted from those in the second edition, which asked you to autoformat a range. Starting with 2007, Excel no longer supports autoformats, at least not officially, but similar functionality is still possible, as indicated here.) Many spreadsheets in the business world contain tables of various types. To dress them up, people often format them in various ways. To do this, select a table of data, including headers, and select an option of your choice from the Format as Table dropdown on the Home ribbon. Try it now with the recorder on, using the table in the Table Data.xlsx file. Then examine the code. You will see that it first creates a new ListObject objectthat is, a table, as discussed in Chapter 15and it then sets the TableStyle property of the table to one of several built-in Excel styles, such as "TableStyleMedium2". (If you ever need to learn the name of one of these style names, just repeat this exercise. It is a perfect example of how the recorder can be used to learn one critical detail of a program.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!