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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Import data from web with querytables

Thread ID:





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

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 11:10 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon