Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Pull data from web

Posted on 2016-10-07
2
Medium Priority
?
86 Views
Last Modified: 2016-11-07
Is it possible to get data from a website and return the value to a cell. The URL I have is "http://test33.mylocalserver/?getVal=66". If I go onto the websites URL I get 66, and I want to dump that value into a cell by using VBA.

Ive had a look around and people say using a webtable, but as its only 1 value for 1 cell I dont want to keep setting up a webtable as there are lot of cells pulling different values depending on values of other cells.
0
Comment
Question by:tonelm54
1 Comment
 
LVL 54

Accepted Solution

by:
Ryan Chong earned 2000 total points
ID: 41833778
basically, you can use the Excel's existing wizard to grab a web page content. check this out for further details.

Get external data from a Web page
https://support.office.com/en-us/article/Get-external-data-from-a-Web-page-708f2249-9569-4ff9-a8a4-7ee5f1b1cfba?ui=en-US&rs=en-US&ad=US&fromAR=1

or you can try use a XMLHTTP request (or similar) in VBA environment, and after calling the method, try to grab the response text. Finally, we need to parse the response text and put into the format you wanted in Excel.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question