title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
QueryTable.WebDisableRedirections property (Excel) |
vbaxl10.chm518129 |
|
|
36aec986-de9c-2c7e-a07c-ae77d75d4c7c |
05/03/2019 |
medium |
True if web query redirections are disabled for a QueryTable object. The default value is False. Read/write Boolean.
expression.WebDisableRedirections
expression A variable that represents a QueryTable object.
If you import data by using the user interface, data from a web query or a text query is imported as a QueryTable object, while all other external data is imported as a ListObject object.
If you import data by using the object model, data from a web query or a text query must be imported as a QueryTable, while all other external data can be imported as either a ListObject or a QueryTable.
The WebDisableRedirections property applies only to QueryTable objects.
In this example, Microsoft Excel determines the settings of web query redirections for the first worksheet in the workbook. This example assumes that a QueryTable object exists on the first worksheet; otherwise, a run-time error occurs.
Sub CheckWebQuerySetting()
Dim wksSheet As Worksheet
Set wksSheet = Application.ActiveSheet
MsgBox wksSheet.QueryTables(1).WebDisableRedirections
End Sub
[!includeSupport and feedback]