Avatar of rsburge
rsburge
Flag for United States of America asked on

Extract Data from Web Page without Tags

I need to extract data from a web page using VBA.  I have everything working but when I get to the webpage, there is only a single number returned and I am not sure how to pull that number into a variable.  There are no tags to reference.

This is an example that I am working with.

https://192.168.1.242/act_pricerequest_count.cfm?LoanDate1=4/15/2018&LoanDate2=5/14/2018

I simply use IE.navigate "https://192.168.1.242/act_pricerequest_count.cfm?LoanDate1=4/15/2018&LoanDate2=5/14/2018" to get to this page.  I just need to know how to get the number returned, 62, into a variable of rngAutomated.
VBA

Avatar of undefined
Last Comment
Gustav Brock

8/22/2022 - Mon
Gustav Brock

No one outside your organisation can navigate to your posted internal IP address.
rsburge

ASKER
Sorry about that.

https://locks.platinumez.com/act_pricerequest_count.cfm?LoanDate1=4/15/2018&LoanDate2=5/14/2018

This number returned is 6817 and is just the number.
ASKER CERTIFIED SOLUTION
Gustav Brock

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
rsburge

ASKER
I added this to my project and added Microsoft XML 6.0 to the references, but when I try to run it, it brings up the box that asks which macro I want to run.

I must be doing something wrong.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Gustav Brock

Can't tell, but it is air code - a simplified version of what I am using here:

VBA.CVRAPI

in the function RetrieveDataResponse  to pull some Json data - these are effectively just one long string.
SOLUTION
Subodh Tiwari (Neeraj)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
rsburge

ASKER
I apologize for the delay, I was out of the office doing training and was unable to get back to this until today.  This is working exactly as needed now.  Thank you very much!
Gustav Brock

No problem. Have a nice weekend!
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.