T
Tim
I need to be able to read an excel worksheet in Access.
The excel file is not condusive to a straight import
(formats are not consistent, etc.). I tried to convert
the excel file into a csv file through VB, but the file
format still reads in like excel.
Here is my current code:
Sub import()
Dim XL_file As Object
Dim filename$
Dim copyname$
Dim A$
Close
filename = "S:\Trust Product Lines\Commercial Trust\daily
funds\manual trades\daily manual trade totals1.xls"
copyname = "S:\Trust Product Lines\Commercial Trust\daily
funds\manual trades\daily manual trade totals1.csv"
Set XL_file = GetObject(filename)
XL_file.SaveAs filename:=copyname
Open copyname For Input As #1
Do Until EOF(1)
Line Input #1, A$
Loop
Close
End Sub
Any help would be greatly appreciated.
The excel file is not condusive to a straight import
(formats are not consistent, etc.). I tried to convert
the excel file into a csv file through VB, but the file
format still reads in like excel.
Here is my current code:
Sub import()
Dim XL_file As Object
Dim filename$
Dim copyname$
Dim A$
Close
filename = "S:\Trust Product Lines\Commercial Trust\daily
funds\manual trades\daily manual trade totals1.xls"
copyname = "S:\Trust Product Lines\Commercial Trust\daily
funds\manual trades\daily manual trade totals1.csv"
Set XL_file = GetObject(filename)
XL_file.SaveAs filename:=copyname
Open copyname For Input As #1
Do Until EOF(1)
Line Input #1, A$
Loop
Close
End Sub
Any help would be greatly appreciated.