Share via


_QueryTable.TablesOnlyFromHTML Propiedad

Definición

Crea una tabla de datos basada en valores de entrada y fórmulas que se definen en una hoja de cálculo.

public:
 property bool TablesOnlyFromHTML { bool get(); void set(bool value); };
public bool TablesOnlyFromHTML { get; set; }
Public Property TablesOnlyFromHTML As Boolean

Valor de propiedad

Variant

Ejemplos

En este ejemplo se crea una tabla de multiplicación con formato en las celdas A1:K11.

<span class="label">Set dataTableRange = Worksheets("Sheet1").Range("A1:K11")  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Set rowInputCell = Worksheets("Sheet1").Range("A12")  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Set columnInputCell = Worksheets("Sheet1").Range("A13")  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Worksheets("Sheet1").Range("A1").Formula = "=A12*A13"  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































For i = 2 To 11  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































    Worksheets("Sheet1").Cells(i, 1) = i - 1  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































    Worksheets("Sheet1").Cells(1, i) = i - 1  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Next i  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































dataTableRange.</span>
<i>Table</i>
<span class="label">rowInputCell, columnInputCell With Worksheets("Sheet1").Range("A1").CurrentRegion     .Rows(1).Font.Bold = True     .Columns(1).Font.Bold = True     .Columns.AutoFit End With</span>

En este ejemplo se crea una tabla de multiplicación con formato en las celdas A1:K11.

<span class="label">Set dataTableRange = Worksheets("Sheet1").Range("A1:K11")  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Set rowInputCell = Worksheets("Sheet1").Range("A12")  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Set columnInputCell = Worksheets("Sheet1").Range("A13")  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Worksheets("Sheet1").Range("A1").Formula = "=A12*A13"  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































For i = 2 To 11  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































    Worksheets("Sheet1").Cells(i, 1) = i - 1  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































    Worksheets("Sheet1").Cells(1, i) = i - 1  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Next i  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































dataTableRange.</span>
<i>Table</i>
<span class="label">rowInputCell, columnInputCell With Worksheets("Sheet1").Range("A1").CurrentRegion     .Rows(1).Font.Bold = True     .Columns(1).Font.Bold = True     .Columns.AutoFit End With</span>

En este ejemplo se crea una tabla de multiplicación con formato en las celdas A1:K11.

<span class="label">Set dataTableRange = Worksheets("Sheet1").Range("A1:K11")  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Set rowInputCell = Worksheets("Sheet1").Range("A12")  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Set columnInputCell = Worksheets("Sheet1").Range("A13")  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Worksheets("Sheet1").Range("A1").Formula = "=A12*A13"  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































For i = 2 To 11  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































    Worksheets("Sheet1").Cells(i, 1) = i - 1  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































    Worksheets("Sheet1").Cells(1, i) = i - 1  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Next i  































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































dataTableRange.</span>
<i>Table</i>
<span class="label">rowInputCell, columnInputCell With Worksheets("Sheet1").Range("A1").CurrentRegion     .Rows(1).Font.Bold = True     .Columns(1).Font.Bold = True     .Columns.AutoFit End With</span>

Comentarios

Utilice tablas de datos para realizar análisis "que pasaría si" cambiando algunas constantes en la hoja de cálculo, para ver el efecto en los valores de otras celdas.

Se aplica a