Coding to pull data from ERP system website

flwoOrlando

New Member
Joined
Nov 18, 2015
Messages
3
Is there a way to create a macro for a 3500 line excel file to take the prepopulated weblink, paste into a web browser and then grab a 10 digit code that is always in the same spot?
The data I want to grab is also visible when looking at the data in chrome source, so the grab could be like find a specific ID and then give the next 10’characters... and put that code next to the weblink in excel.

The web URL is something like this: www.ERP.com - then I log on. I want the macro to pull the line detail: https://erp.com/.../ro/product_detail.jsp?companyId=XXXXX&productId=YYYY and then find the ScheduleBNumber 3902100000 or whatever the actual number is, and paste it back into my spreadsheet...

I have taken the time to prepopulate the company ID and the Product ID to keep it simple.

<code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; vertical-align: baseline; white-space: inherit;"><TD class="verdanaBlue">Schedule B Number&nbsp;:&nbsp;</TD>
<TD class="verdanaBlue" id="scheduleBNumber">
3902100000<input type="hidden" name="scheduleBNumber" class="verdana" value="3902100000"</code>
My Excel file is:

A1 - https://erp.com/.../ro/product_detail.jsp?companyId=XXXXX&productId=YYYY
B1 - the copied 10 digit code from the macro/code

A2- different https://erp.com/.../ro/product_detail.jsp?companyId=XXXXX&productId=YYYY
B2 - the copied 10 digit code from the macro/code

and on an on until it gets to the last line (or a predefined row number...) which ever is simplier
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,216,075
Messages
6,128,665
Members
449,462
Latest member
Chislobog

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top