Reputation: 43
I'm in need of a macro that will enter data into a webpage search field and than copy the results to excel.
Upvotes: 0
Views: 7242
Reputation: 2877
This is how I would approach it
This does require some VBA skills but is not too hard as long as the URL contains the search term. If it doesn't (eg if it is sent through as a web form), you can still use the approach above, because Excel can handle form-based web queries, but it is a little harder.
Upvotes: 2
Reputation: 9256
if using excel is not a constraint in your question.. i.e. you can use other software to get the job done.. you should check out Google Spreadsheet.. its a lot more webfriendly... has functions that can retrieve some page.. or alternatively google for something nd then put the results in your table.. http://spreadsheets.google.com/
after that you can save the file in .xls format and bring it to any other platform
Upvotes: 1
Reputation: 33667
It's just a simple "File Open". No need for a macro.
Excel can open URLs directly. If the URL contains any tables, those will be formatted appropriately.
Try this:
http://finance.yahoo.com/q?s=MSFT
as the file nameUpvotes: 4