Thread: *.csv to *.xls
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Kaak[_74_] Kaak[_74_] is offline
external usenet poster
 
Posts: 1
Default *.csv to *.xls


To import csv file:

Sheets.Add Type:="C:\FileName.csv"

To Select multiple files:

InputFileArray = Application.GetOpenFilename("CSV Files (*.csv)
*.csv", 1, "Select File(s)", , True)

If Not IsArray(InputFileArray) Then Exit Sub

For i = LBound(InputFileArray) To UBound(InputFileArray)

InsertCSV (InputFileArray(i))

Next

--
Kaa
-----------------------------------------------------------------------
Kaak's Profile: http://www.excelforum.com/member.php...nfo&userid=751
View this thread: http://www.excelforum.com/showthread.php?threadid=55685