Excel VBA Workbook.Open changes Format

Gindo70

New Member
Joined
Oct 9, 2017
Messages
6
Hello
i have the following problem:
All Cells of the Wokrbook are in the general format. When i open it manualy it looks like this:

[TABLE="width: 498"]
<tbody>[TR]
[TD="align: right"]349,878235
[/TD]
[TD="align: right"]21,041668[/TD]
[TD="align: right"]36,666668[/TD]
[TD="align: right"]29,895834[/TD]
[TD="align: right"]46,04166[/TD]
[TD="align: right"]39,479168[/TD]
[/TR]
[TR]
[TD="align: right"]350,061096[/TD]
[TD="align: right"]27,867134[/TD]
[TD="align: right"]40,702213[/TD]
[TD="align: right"]28,872379[/TD]
[TD="align: right"]54,324005[/TD]
[TD="align: right"]50,008747
[/TD]
[/TR]
</tbody>[/TABLE]

But when i use Workbooks.open the opened Workbook looks like this (Format of the Cells changed to Number):

[TABLE="width: 498"]
<colgroup><col span="6"></colgroup><tbody>[TR]
[TD="align: right"]349.878.235
[/TD]
[TD="align: right"]21.041.668[/TD]
[TD="align: right"]36.666.668[/TD]
[TD="align: right"]29.895.834[/TD]
[TD="align: right"]46.041.660
[/TD]
[TD="align: right"]39.479.168
[/TD]
[/TR]
[TR]
[TD="align: right"]350.061.096[/TD]
[TD="align: right"]27.867.134[/TD]
[TD="align: right"]40.702.213[/TD]
[TD="align: right"]28.872.379[/TD]
[TD="align: right"]54.324.005[/TD]
[TD="align: right"]50.008.747
[/TD]
[/TR]
</tbody>[/TABLE]

Additional Info:
The Workbook is an Excel 1997-2003 .xls File and i am using Excel 2016
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Welcome to the forum.

Try specifying the Local:=True argument for the Workbooks.Open method as well as the file name.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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