다음을 통해 공유


Worksheet.QueryTables Property (Excel)

Returns the QueryTables collection that represents all the query tables on the specified worksheet. Read-only.

Syntax

.QueryTables

A variable that represents a Worksheet object.

Example

This example refreshes all query tables on worksheet one.

For Each qt in Worksheets(1).QueryTables 
 qt.Refresh 
Next

This example sets query table one so that formulas to the right of it are automatically updated whenever it’s refreshed.

Sheets("sheet1").QueryTables(1).FillAdjacentFormulas = True

참고 항목

개념

Worksheet Object Members

Worksheet Object