Advertisement
Advertisement
| 05.08.2008 at 08:03PM PDT, ID: 23388319 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: |
With ActiveSheet.QueryTables.Add(Connection:="ODBC;DSN=AS400;", Destination _
:=Range("A7"))
.CommandText = strQry
.Name = "Query from AS400"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = True
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.PreserveColumnInfo = True
.Refresh BackgroundQuery:=False
End With
|