0

I have created a webquery in excel which fetches data from the webpage in Excel file. Is there anyway i can access the same webquery in C#. I hope it makes sense. Need some valuable suggestions with the coding.

Community
  • 1
  • 1
waris kantroo
  • 83
  • 3
  • 21

1 Answers1

0

to see how to access a web querytable through VBA in Excel, take a look at the

MSDN Library: QueryTables/Webtable documentation

this will give you the objects that you would work with in c#

for example, a Webquery is stored in a Querytable object in a worksheet in a workbook in the Excel application.

The webquery has a connection object which shows the URL, and a WebTables property determines which tables are brought in from the web page to your worksheet.

So now you just have to do some reading, and write some c# code

Our Man in Bananas
  • 5,809
  • 21
  • 91
  • 148