Problem opening German .csv file with columns seperated by semicolons

jakeb3482

Board Regular
Joined
Mar 6, 2006
Messages
74
Ok so I can open the file manually fine but when I try to run a script to open and convert the files I can not get the formatting right. The columns do not separate.

I tried this to no avail:

Filename = german_file
Workbooks.OpenText Filename:=german_file, DataType:=xlDelimited, Tab:=False, Semicolon:=True, Comma:=False, DecimalSeparator:=",", ThousandsSeparator:="."

The German numbering uses the period as the thousands separator and the comma as the decimal separator. When opening the file manually, I change these settings under the International Options tab and then I choose semicolon in the Text to Columns option.

any help would be greatly appreciated.

Thanks!
Jake
 

Some videos you may like

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,115
Jake - I'm not a moderator, but bumping after only 21 minutes is probably not in accordance with the rules of the board.

It also may be counter-productive - there are many people on this board, myself included, who sometimes focus on un-answered threads. By bumping your own thread, you've made it look as if it's answered, and you may get less people reading it as a result.

In terms of a solution to your problem, have you tried recording a macro while you do the job manually, to see what code you get ?
 

jakeb3482

Board Regular
Joined
Mar 6, 2006
Messages
74
Rules are meant to be broken :)

I tried the script recording and that does not work either.
 

Watch MrExcel Video

Forum statistics

Threads
1,108,492
Messages
5,523,260
Members
409,506
Latest member
reneekeane

This Week's Hot Topics

Top