Thread
:
WorkBook.Open: Problems with field separation character
View Single Post
#
2
Posted to microsoft.public.excel.programming
Nick Hodge
external usenet poster
Posts: 1,173
WorkBook.Open: Problems with field separation character
Ebbe
csv files are seen as a native format for Excel and so, I suspect, it is
seeing the extension and presuming commas.
You can try two routes to fix this...
1) Try using the OpenText method rather than the Open method
2) Try using a file with no extension or a *.txt extension and option 1
--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS
"Ebbe" wrote in message
...
I am using these lines to open a semicolon separated file:
Dim ImportFileName As String
ImportFileName = Application.GetOpenFilename("CSV-files (*.csv), *.csv")
Workbooks.Open Filename:=ImportFileName, Format:=6, delimiter:=";"
The file is opened, but the Excel uses "," (comma) as separator.
WHY!
I am running Office 2000 Pro
Ebbe
Reply With Quote
Nick Hodge
View Public Profile
Find all posts by Nick Hodge