Hi guys
I need this line in my macro. What it does is, importing a textfile.
With ActiveSheet.QueryTables.Add(Connection:="TEXT;" & vFilename, _
Destination:=Range("A1"))
What I want to do is to replace 'ActiveSheet' by 'Sheets("Import")' or something like that.
I hate the idea that I first need to select the sheet, and then Import the data.
Is this possible? Because with the 'Sheets("Import") method I get the error:
"The destination range is not on the same worksheet that the Query table is being created on."
Please let me know.
Thanx
Bookmarks