We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Import data from web with querytables

Thread ID:





79869 Mar 2,2009 02:39 PM Mar 3,2009 06:10 AM ASP.NET Web Forms (Classic) 1
Tags: XlsIO
Administrator [Syncfusion]
Asked On March 2, 2009 02:39 PM

Can anybody tell me how to insert a web query in an Excel-sheet?

I want to create an Excel document that automatically contains a web query to fill the sheet with data provided by a url.

In Excel I recorded a macro just to see the VB code that it generates:

With ActiveSheet.QueryTables.Add(Connection:="URL;http://www.google.com", _
.Name = "www.google.com"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = True
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With


Geetha M [Syncfusion]
Replied On March 3, 2009 06:10 AM

Hi Ferry,

Thank you for your interest in Syncfusion products.

Currently Essential XlsIO does not support inserting a web query.

Please let me know if you have any questions.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.