Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.6 KB

Excel.QueryTable.WebDisableRedirections.md

File metadata and controls

50 lines (30 loc) · 1.6 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
QueryTable.WebDisableRedirections property (Excel)
vbaxl10.chm518129
vbaxl10.chm518129
Excel.QueryTable.WebDisableRedirections
36aec986-de9c-2c7e-a07c-ae77d75d4c7c
05/03/2019
medium

QueryTable.WebDisableRedirections property (Excel)

True if web query redirections are disabled for a QueryTable object. The default value is False. Read/write Boolean.

Syntax

expression.WebDisableRedirections

expression A variable that represents a QueryTable object.

Remarks

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.

Example

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]