B
Bing
Hi,
Still haven't figured this one out.. hopefully someone knows why.
Programmatically i add a querytable (name=qt) to the querytables collection
of a worksheet:
ie.
With activesheet.QueryTables.Add(Connection:="TEXT;c:\log.txt"),
Destination:=Range("A2"))
.Name="qt"
End With
I then delete that querytable by: qt.delete.
But when i go to recreate that query table using the same name, "qt" for
some reason excel starts appending an underscore than a number to the query
table name each time i delete, then add that querytable with the same name
"qt". Ie. excel changes the name to "qt_1", or "qt_2", etc.
Anyone know why and how to stop this so taht i can use the same name "qt" to
reference the query table each time i add and delete it.
Still haven't figured this one out.. hopefully someone knows why.
Programmatically i add a querytable (name=qt) to the querytables collection
of a worksheet:
ie.
With activesheet.QueryTables.Add(Connection:="TEXT;c:\log.txt"),
Destination:=Range("A2"))
.Name="qt"
End With
I then delete that querytable by: qt.delete.
But when i go to recreate that query table using the same name, "qt" for
some reason excel starts appending an underscore than a number to the query
table name each time i delete, then add that querytable with the same name
"qt". Ie. excel changes the name to "qt_1", or "qt_2", etc.
Anyone know why and how to stop this so taht i can use the same name "qt" to
reference the query table each time i add and delete it.