LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default International HTML Import Problem


My users are emailed an "excel" file each day from the USA. This file
is an extract from a website. It is coded as html (see sample below).
The problem is that the date is coded as mm/dd/yyyy. My users are
Excel/German date format is is dd/mm/yyyy.

I am writing a macro that opens this file, copies the data, and pastes
it into another spreadsheet. When my users open the data file, their
native language Excel automatically converts the date (in the example
below, it converts to an text because 25/10/2005 is not a valid date),
and I'm hosed before I begin.

1) The data set is 10,000 elements per day.
2) There are 35 columns. I'm only showing you one column.
3) We are using Excel 2000 & 2002

I can't read this file as a text file because it's in HTML.
I cannot ask users to change their local language settings.

Suggestions? Please help!!!

Is there a way to write code that will temporarily change the Excel
language setting for the user, open the data file, copy the data, and
change the language setting back?


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
<html
<head
<meta content="Microsoft Visual Studio 7.0" name=GENERATOR
<meta content=C# name=CODE_LANGUAGE
<meta content=JavaScript name=vs_defaultClientScript
<meta content=http://schemas.microsoft.com/intellisense/ie5
name=vs_targetSchema
</head

<td align="Center"Customer Required Date</td 10/25/2005


--
aldsv
------------------------------------------------------------------------
aldsv's Profile: http://www.excelforum.com/member.php...o&userid=20494
View this thread: http://www.excelforum.com/showthread...hreadid=385185

 
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
Import HTML Table JimJx Setting up and Configuration of Excel 0 July 23rd 07 01:44 PM
HTML Import Errors [email protected] Excel Discussion (Misc queries) 1 February 15th 07 12:56 AM
html import errors wwoody Excel Discussion (Misc queries) 1 May 3rd 06 11:06 PM
HTML/XML Import Error -ExcelName smcclure Excel Programming 0 October 22nd 04 06:19 AM
international problem, decimal separator and chart series Brian Murphy Excel Programming 5 December 16th 03 05:04 PM


All times are GMT +1. The time now is 07:21 AM.

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"