Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc,microsoft.public.excel.querydao
external usenet poster
 
Posts: 1
Default Web Query Changes Format to Scientific in Excel

Hi, This problem seems to be a challenging one around here!

I am using a Web Query in Excel 2002 to simply return data from a web
page into a worksheet. Some data on the web page are alpha-numeric
fields that cause problem when they contain the letter E. For example
the field '234E2' for which the web query returns as '2.34E+04'
(Scientific number format). If you try to convert back to Text it will
end up as '23400' which would be totally incorrect.
I have tried changing the worksheet format to Text and disabling the
Excel's Autoformat before dumping the query results but it still
returns as Scientific format. Even playing aroud with some of the
WebQuery properties such as PreserveFormatting, WebFormatting, etc.
don't work. Nothing seems to work!

Does anyone have a solution to this?

Thanks alot,
Tony
  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc,microsoft.public.excel.querydao
external usenet poster
 
Posts: 599
Default Web Query Changes Format to Scientific in Excel

Follow up to this message set to excel.querydao

Tony

I have had no luck getting Excel to format stuff via a web query. Unless
you get a better answer, I think you will need a macro to go through the
results of your query and fix the problems. With a macro, you have two
options: You can run the macro every time you refresh; or you can set up a
class module that will run that macro automatically whenever the query is
refreshed. If you need help writing that macro, post the details of your
web query. It should be a pretty simple macro.

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

"Tony" wrote in message
m...
Hi, This problem seems to be a challenging one around here!

I am using a Web Query in Excel 2002 to simply return data from a web
page into a worksheet. Some data on the web page are alpha-numeric
fields that cause problem when they contain the letter E. For example
the field '234E2' for which the web query returns as '2.34E+04'
(Scientific number format). If you try to convert back to Text it will
end up as '23400' which would be totally incorrect.
I have tried changing the worksheet format to Text and disabling the
Excel's Autoformat before dumping the query results but it still
returns as Scientific format. Even playing aroud with some of the
WebQuery properties such as PreserveFormatting, WebFormatting, etc.
don't work. Nothing seems to work!

Does anyone have a solution to this?

Thanks alot,
Tony



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
Excel Scientific Format Imi Excel Worksheet Functions 0 May 27th 08 10:58 AM
Stop Excel converting csv values to scientific format Chris at SF Excel Discussion (Misc queries) 2 November 14th 07 06:00 PM
Replace Scientific Format b&s Excel Discussion (Misc queries) 1 August 23rd 05 10:53 AM


All times are GMT +1. The time now is 10:31 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"