Forum Discussion

Gurpreet Singh's avatar
Gurpreet Singh
Copper Contributor
Nov 28, 2017

Getting Data from Multiple Web Pages -- Replicate changes made using Query Editor

I am getting data from Multiple Web pages into multiple excel worksheets. Each Web page has the same format, and the same changes need to be made to each worksheet using the Query Editor before I load the data into Excel.

 

Is there a way I can replicate the changes made to the first sheet, onto the 2nd sheet, and so on ?

 

There is an option to duplicate the in the Query editor, when I used the same, and duplicated one sheet, and changed the Data source, to be able to apply the same changes to the data from the 2nd source, it pulled the raw data, and the changes which I applied to the first sheet, were not replicated to the 2nd sheet.

 

Any suggestions as to how I can achieve this ?

 

End of the day, I want all the data from multiple web pages into one sheet, for which the append option works, but appends the data only from existing sheets, not from the web, so even that does not solve my issue.

 

 

13 Replies

  • Hi Gurpreet,

     

    You may create the query for one web page, after that duplicate it from the menu (right click on the query) and use for another web page. Connection string to web page could be hardcoded or defined as parameter. Or you may create the function based on such query with URL as parameter.

     

    And one more query on the top which appends all results and loads into the summary sheet.

    • Gurpreet Singh's avatar
      Gurpreet Singh
      Copper Contributor

      "duplicate it from the menu (right click on the query) and use for another web page."

      I cannot find any such option. I am using Excel 2016 on Office 365.

      • SergeiBaklan's avatar
        SergeiBaklan
        MVP

        That's in Queries&Connections pane in Excel sheet or in Queries pane in Query editor

Resources