View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Russell[_2_] Russell[_2_] is offline
external usenet poster
 
Posts: 1
Default Variables in command lines


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_Connec tion,
Destination:=Range("A1"))