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: 8
Default Web query excel 2003 not good for Excel 2000 code

I wrote some scripts in excel 2000 that used web query and yahoo
finance quotes.
Trying to run the scripts in Excel 2003 is a nightmare. The script
below works fine in
excel 2000 but not 2003. Any help is appreciated.

Also, does anybody know why you can't enter this url in the new web
query window?

http://finance.yahoo.com/d/quotes.cs...l1&ignore=.csv

TIA

Dave


This runs through a column of symbols and retrives the last price and
puts it in the adjacent column to the right.


Sub Yahoo()

Do

On Error Resume Next

x = ActiveCell.Offset(0, -1).Value
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://finance.yahoo.com/d/quotes.csv?s=" & x &
"&f=l1&ignore=.csv", _
Destination:=ActiveCell.Offset(0, 0))
.AdjustColumnWidth = False
.WebFormatting = xlWebFormattingNone
.BackgroundQuery = False
.TablesOnlyFromHTML = True
.Refresh BackgroundQuery:=False
.SaveData = True
End With

ActiveCell.Offset(1, 0).Select
Loop Until IsEmpty(ActiveCell.Offset(0, -1))
End Sub

 
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 2003 query from Access 2000 database Loretta Cahill Excel Worksheet Functions 1 March 1st 10 04:33 PM
VBA Code works in Excel 2003 but won't work in Excel 2000 aglazer Excel Programming 2 September 5th 05 03:52 PM
VBA Code works in Excel 2003 but won't work in Excel 2000 [email protected] Excel Programming 0 September 5th 05 09:05 AM
Excel 2003 won't run simple code that Excel XP and Excel 2000 will run Moses[_2_] Excel Programming 4 January 27th 05 06:30 AM
Converting VB Code for Excel 2000 to Excel 2003 MarkPirks Excel Programming 2 January 5th 05 12:37 AM


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