Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default web query returns no data

When I do a web query, no data is returned, but when I use the Internet
Explorer and go to the same page in it opens up the page with no
problem....It worked before...but not now...what could be the problem?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default web query returns no data

How are you doing this? Post the url and your web query.
It could be as easy as changing the extension to .csv

--
Don Guillett
SalesAid Software

"Gary" wrote in message
...
When I do a web query, no data is returned, but when I use the Internet
Explorer and go to the same page in it opens up the page with no
problem....It worked before...but not now...what could be the problem?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default web query returns no data

'I'm already logged in so there is no login erros

v =
"URL;http://baseball.fantasysports.yahoo.com/b1/338255/2/team?date=2006-04-12&stat1=S&stat2=S_2006"

QueryTables.Add(Connection:=v, Destination:=Range("AD1")).Refresh
BackgroundQuery = True



SalesAid Software

"Gary" wrote in message
...
When I do a web query, no data is returned, but when I use the Internet
Explorer and go to the same page in it opens up the page with no
problem....It worked before...but not now...what could be the problem?





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default web query returns no data

That's what I am trying to get.....

I am using Excel 2000....using the same querytables function i can get just
about any page to come up......I can even get the yahoo page to come up until
I get to this part:

http://baseball.fantasysports.yahoo.com/b1/338255/2

examples:

'This works fine

Sub Test1()
v = "URL;http://baseball.fantasysports.yahoo.com/b1/338255"
QueryTables.Add(Connection:=v, Destination:=Range("AD1")).Refresh
'BackgroundQuery = True
End Sub

'This doesn't work at all

Sub Test2()
v = "URL;http://baseball.fantasysports.yahoo.com/b1/338255/2"
QueryTables.Add(Connection:=v, Destination:=Range("AD1")).Refresh
'BackgroundQuery = True
End Sub


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
web query url returns data, but not showing Richard S[_2_] Excel Discussion (Misc queries) 0 April 30th 09 04:29 PM
Query returns blank cells where there should be data WillrSF Excel Discussion (Misc queries) 1 December 3rd 08 08:43 AM
web query 2003 returns no data from some web pages DianneZ Excel Discussion (Misc queries) 0 September 12th 07 07:02 PM
MS query returns truncated data to Excel memeli Excel Discussion (Misc queries) 0 May 20th 07 09:51 AM
stop excel from shifting cells up when a query returns no data DrLostinExcel Excel Worksheet Functions 2 November 9th 04 05:44 PM


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