Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Repetition Structure Lecture 11 08/07/06 Dan Rao.

Similar presentations


Presentation on theme: "The Repetition Structure Lecture 11 08/07/06 Dan Rao."— Presentation transcript:

1 The Repetition Structure Lecture 11 08/07/06 Dan Rao

2 The Repetition Structure Sequence programming structure The selection structure The repetition structure

3 The For…Next Statement

4

5

6 For Each…Next Statement

7 The With Statement

8 Using the Repetition Structure and the With Statement in Excel Open the monthlySales.xls workbook. Open the MthSales.mdb database.

9 Using Microsoft Query Microsoft Query is a separate program that comes with Microsoft Excel, and it is used to bring data from a database into an Excel worksheet Microsoft Query can retrieve data from the following database sources: Microsoft SQL Server OLAP Services, Microsoft Access 2000, dBASE, Microsoft FoxPro, Microsoft Excel, Oracle, Paradox, SQL Server, and text file databases

10 The QueryTables Collection and QueryTable Objects Each QueryTable object represents a worksheet table built from data retrieved from an external data source You can use the QueryTable object’s CommandText property to select a different set of records to retrieve from the database and display in the worksheet

11

12 The Current Region Properties rangeObject.CurrentRegion It returns a range that contains the entire region in which the Range object resides.

13 The Resize Method

14


Download ppt "The Repetition Structure Lecture 11 08/07/06 Dan Rao."

Similar presentations


Ads by Google