473,385 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How can i pull data from web into excel cell?

1
I have a public json URL that outputs a digit.
How can i have a certain excel spreadsheet cell pull the data from that URL and use that data?
Dec 12 '13 #1
2 1506
Luuk
1,047 Expert 1GB
The URL, http://ip.jsontest.com returns the ip-address as a string in json-format.

Formula: =GetData("http://ip.jsontest.com")
with the following macro:
Expand|Select|Wrap|Line Numbers
  1. Function GetData(URL As String) As String
  2.     Set OXH = CreateObject("msxml2.xmlhttp")
  3.     With OXH
  4.         .Open "get", URL, False
  5.         .send
  6.         x = .responseText
  7.     End With
  8.     Set OXH = Nothing
  9.     GetData = x
  10. End Function
for more json testurls, see: http://www.jsontest.com/#ip
Dec 12 '13 #2
Hi, it very simple make you excel input TEXT only.
and use Opera to copy text from there it will not fetch link from website. and when you will past you will get the same thing.
Dec 19 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: cvillard | last post by:
I am new to SQL, as old as it is. I am not new to programming I normally just use Access. I have two tables for a little project manager I made. After updates I sent an email to the user. I need...
0
by: Alan | last post by:
I'm just starting out in C# so this is really a basic question. I have an Excel cell reference for which I need to generate offsets It seems to me that the best way is to start off with a string...
2
by: Jeremy Dillinger | last post by:
I have a program setup to pull data from a database. My database table has things such as (category, Item, price, etc.) In my program I want to have multiple list boxes that will have a pull down...
3
by: jjgardner3.web | last post by:
Hello I have a very simple xml file: <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="./status.xsl"?> <IEC> <Workstation> <Hostname>HOSTNAME</Hostname>...
0
by: nickyr | last post by:
Hi, I want to get the data from one excel cell to a textbox. Nothing more than that. What I have now is this: Dim myxl As Object Dim strdata As String myxl = GetObject ("d:\test.xls")
0
by: napstar | last post by:
I have an excel file with data.I want to pull data from the excel file into a table in access.The data in excel has products and customers who buy these products and sometimes 1 customer can buy many...
0
by: payelit21 | last post by:
Hi Friends, can any body help me to convert excel cell from date to general and passinfg value to min value and max value of axis in chart through VB. Thanks Payel
1
by: datttanand | last post by:
how to add drop down list in excel cell using javascript code?
1
by: G Sisk | last post by:
Please if someone has the ability to answer me i would extremely grateful! how can i link (as hyperlink) a unique excel cell to an access field in order the value in access to be updated when the...
0
by: Stefent Tan | last post by:
I Have 3 Textbox at access form said Textbox1, textbox2, and textbox3, and I want every time when I click on the clickbutton the data at textbox 1,2,3 will transfer to Ms Excel cell. Textbox1 at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.