Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
querytable downloads data from web and export to a variant
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
franco  
View profile   Translate to Translated (View Original)
 More options 25 Jan 2007, 16:12
Newsgroups: microsoft.public.excel.querydao
From: "franco" <franco.q...@gmail.com>
Date: 25 Jan 2007 08:12:51 -0800
Local: Thurs 25 Jan 2007 16:12
Subject: querytable downloads data from web and export to a variant
Hi,

I have a question about using Querytable to download the data from
website, the code is like this, the question is: Is it possible to
export the data to some variant or array defined in the VBA, instead of
the worksheet. Since if the data has too many rows, then worksheet is
not enought to handle all of them,

any ideas? thanks

Sub WebDownload()
 Dim myQTable As QueryTable
 Dim x As Variant

 Set myQTable = ActiveSheet.QueryTables.Add _

(Connection:="URL;http://ichart.yahoo.com/table.csv?s=BMW.DE&d=0&e=24&f=2007&g=d&a=0&b=...",
_
        Destination:=Range("A1"))
With myQTable
        .Name = "Yahoo"
        .FieldNames = True
        .RowNumbers = False
        .FillAdjacentFormulas = False
        .PreserveFormatting = False
        .RefreshOnFileOpen = False
        .BackgroundQuery = True
        .RefreshStyle = xlOverwriteCells
        .SavePassword = False
        .SaveData = True
        .AdjustColumnWidth = True
        .RefreshPeriod = 0
        .WebSelectionType = xlEntirePage
        .WebFormatting = xlWebFormattingRTF
        .WebPreFormattedTextToColumns = True
        .WebConsecutiveDelimitersAsOne = True
        .WebSingleBlockTextImport = False
        .WebDisableDateRecognition = False
        '.WebDisableRedirections = False
        .Refresh BackgroundQuery:=True
End With

End Sub


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Don Guillett  
View profile   Translate to Translated (View Original)
 More options 30 Jan 2007, 22:20
Newsgroups: microsoft.public.excel.querydao
From: "Don Guillett" <dguille...@austin.rr.com>
Date: Tue, 30 Jan 2007 16:20:30 -0600
Local: Tues 30 Jan 2007 22:20
Subject: Re: querytable downloads data from web and export to a variant

When I ran this I got only 200?
I have a free file at yahoo xltraders group that does this for many symbols
and includes a graph

--
Don Guillett
SalesAid Software
dguille...@austin.rr.com

"franco" <franco.q...@gmail.com> wrote in message

news:1169741571.244160.233940@s48g2000cws.googlegroups.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google