Constant | Description |
xlOverwriteCells | No new cells or rows are added to the worksheet. Data in surrounding cells is overwritten to accommodate any overflow. |
xlInsertDeleteCells | Partial rows are inserted or deleted to match the exact number of rows required for the new recordset. |
xlInsertEntireRows | Entire rows are inserted, if necessary, to accommodate any overflow. No cells or rows are deleted from the worksheet. |
Dim qt As QueryTable
Set qt = Sheets("Sheet1").QueryTables _
.Add(Connection:="Finder;C:\Myfile.dqy", _
Destination:=Range("Sheet1!A1"))
With qt
.RefreshStyle = xlInsertEntireRows
.Refresh
End With