2
I have the following code snippet:
ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\Users\Contoso\Desktop\ArquivosDoContoso.csv", Destination:=Range _
("$A$1"))
In part Destination:=Range _ ("$A$1")) have how I put the name of the dynamic table?
For example: I created a Dynamic Table with the name TBDados, has how I make the Destination:=Range _ ("$A$1") is this table? Regardless of the row the table starts?
I tried so Destination:=Range _ ("$TBDados$"), but returns me the following error:
Range method of the_Global object failed.
Um... what I have is a normal table, what I want is to update this table with data from a file
CSVand from the table assemble the dynamic table.– MeuChapeu
Maybe you’re looking for it, right? http://www.jkp-ads.com/articles/importtext.asp
– Felipe Costa Gualberto
That’s what I want, only I’m doing it for
VBA. Know how to update the table without losing reference or formula that are contained in the table?– MeuChapeu