download file from webpage with vba

spq24

Board Regular
Joined
Jan 18, 2010
Messages
52
Hello,

I need to download a file from a webpage. The actual link is a javascript link that references what was filled out in a form.

he's the sequence: click a link on a webpage, a popup pops up with a form, I don't fill out anything on the form and I click submit.

is it possible to replicate this process using code?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Yes, in general terms you need to start an instance of Internet Explorer, navigate to the URL in question, then click the button programatically. To do that you'll need to look at the HTML code for the button to ascertain its name and type, then use the appropriate method to click it.

If that gives you enough to be getting along with, then good. If it doesn't, then we're going to need to look at the Web page so we can see what we're dealing with.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

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