Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a piece of code developped with Office 2000 that opens a text file with the method ActiveSheet.QueryTables.Add. My text file is of MS-DOS type so I added the parameter: .TextFilePlatform = xlMSDOS The file is correctly converted in Office 2000 but when running under Office for XP, the xlMSDOS value is ignored and the file is obviously open as an ANSI text. So I recorded a macro in Office 2002 and noticed that the parameter had been changed into: .TextFilePlatform = 850 The documentation of VBA help in Office 2002 still mentions xlMSDOS and does not refer to 850. NB: I implemented a workaround that checks the current version of the app so I must say it does not cause a problem, but I try to understand the difference between xlMSDOS and 850. Regards, Patrick++ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When I recorded a macro I got:
..TextFilePlatform = 437 Perhaps having different Regional Settings accounts for our different results. But it looks as if the TextFilePlatform property is not fully documented in the help file or in the Object Browser. -- Jim Rech Excel MVP |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As you guessed, 437 and 850 refer to different Code Page. If my (MS-DOS)
memory serves me well, 437 is U.S. and 850 International (and I'm in Europe). Jim Rech wrote: When I recorded a macro I got: .TextFilePlatform = 437 Perhaps having different Regional Settings accounts for our different results. But it looks as if the TextFilePlatform property is not fully documented in the help file or in the Object Browser. -- Jim Rech Excel MVP |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to Work with my 97-2003 Excel version in Compatibility Mode? | Excel Discussion (Misc queries) | |||
Restore Previous Version | Excel Discussion (Misc queries) | |||
Version Compatibility | New Users to Excel | |||
Office 2007 compatibility pack on Office 2003 (slow network file | Setting up and Configuration of Excel | |||
Office 2007 compatibility at office 2003 is not working for graphs | Excel Discussion (Misc queries) |