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
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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 ?
 
Upvote 0

Forum statistics

Threads
1,214,973
Messages
6,122,534
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top