Home > Forum Home > Automating Data Analysis Tasks > Excel web query results destination | Share |
Forum Topic | Post Reply Login |
Excel Web Query Results Destination | Rate this: (3/5 from 1 vote) |
Im trying to use excel to parse some data using queries. What I have is a column of numbers which I use as the source for another query. The query needs to look at each cell in that column (lets say A1:A50 for example) and run the query with the number in each cell. I have a query that does this for me and Ill post the code for it below however, it puts the results of each and every query in the same cell (overwriting previous data). What I need to do is find a way to make the query results start at a cell such as C1 and move down as it runs to C2, C3 etc. Is this possible? How would I go about doing this? My code: VBA Code:
"query_param" is a "named range" for the cell B1. The Query looks in this cell for the variable to be used in the web query. "PRPT_Query" is the name of my webquery which has a destination cell of D1. All the source data is in A1 through A50. I would actually prefer to use an IQY file for my queries but I cant figure out how to do that and still get the multiple queries to run in a loop. | |||
Posted by jtzako on |
Replies - Displaying 1 to 4 of 4 | Order Replies By: Most Recent | Chronological | Highest Rated |
Rate this: (3/5 from 1 vote) I want my web query IQY file to point to cell B1 on my spreadsheet to get its 'variable' example: The searched url is: http://www.myserver.com/search?stuff=["stuff"] "stuff" is the variable. Right now it prompts in a dialog box for me to enter that value. If I do enter the value it works fine. However, I want it to look in Cell B1 for that value and not prompt me. Anyone know how to do this in an IQY file? Or get the VB code to pass that variable to the IQY query so it doesnt prompt? | |
Posted by jtzako on |
Rate this: (3/5 from 1 vote) How did you solve the incremental query results destination issue in your first post? This could be interesting to other users that find this post. | |
Excel Business Forums Administrator | |
Posted by Excel Helper on |
Rate this: (3/5 from 1 vote)
| |||
Posted by jtzako on |
Rate this: (3/5 from 1 vote) | |
azbuzazbuz | |
Posted by azbuz on |
Displaying page 1 of 1 |
Find relevant Excel templates and add-ins for Excel web query results destination in the Excel Business Solutions Directory |