Variables in command lines

R

Russell

Why doesn't this work?
Is there a better way to import a .csv file into excel 2000?

Public Sub Get_CSV()
Set CSV_Connection = Worksheets(1).Cells(8, 65)
Set CSV_Name = Worksheets(1).Cells(7, 65)
With
ActiveSheet.QueryTables.Add(Connection:=CSV_Connection,
Destination:=Range("A1"))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top