Name

querytable.FieldNames[= setting]

Synopsis

True if field names from the data source are displayed as column headings for the returned data. The following code specifies that field names will not be displayed in the query table:

ActiveSheet.QueryTables(1).FieldNames = False

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.