![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 5
|
My Excel application does a web query on a html file containing security cusip numbers having an "E" in the 8th position of the data. Excel formats the data as scientific; I need to have a text format. I have tried using a .txt extention on the file and preformatting the cell as text (prior to performing the web query), but nothing has
worked so far. I am able to address this problem on a text import by using .TextFileColumnDataTypes = Array(2). Is there something similar for a Web Query? |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: London, UK
Posts: 167
|
have you tried prefixing the value with a '
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 5
|
I'm sorry, I don't know how to prefix the data with a ' on a web query. By the time Excel completes loading the sheet, it has already changed the VALUE of the data as well as the format. I cannot add a ' to the html file as it is used for other purposes. Please explain how I can add a ' during the web query operation. Thanks!
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: London, UK
Posts: 167
|
oh i see, sorry.
Is the initial data source of this column always eight digits, that is, can you use a formula to convert these values back? |
|
|
|
|
|
#5 |
|
New Member
Join Date: Mar 2002
Posts: 5
|
No, these are US Treasury Notes, as well as other security CUSIPs, some are 6, some 7 characters in length.
Thanks so much for your reply. I appreciate all suggestions! |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|