Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Office 2002 compatibility w. previous version

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Office 2002 compatibility w. previous version

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Office 2002 compatibility w. previous version

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Work with my 97-2003 Excel version in Compatibility Mode? Quincy Excel Discussion (Misc queries) 0 January 6th 10 08:31 PM
Restore Previous Version Ginnie Excel Discussion (Misc queries) 2 December 17th 08 10:38 PM
Version Compatibility Jerry Foley New Users to Excel 0 January 17th 08 05:00 PM
Office 2007 compatibility pack on Office 2003 (slow network file fox_mulder33 Setting up and Configuration of Excel 0 January 2nd 08 03:28 PM
Office 2007 compatibility at office 2003 is not working for graphs Vinod[_2_] Excel Discussion (Misc queries) 0 December 4th 07 06:17 PM


All times are GMT +1. The time now is 11:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"