How to use VBA to download a link from a website into an already open workbook!! Please Help!

lpeters

New Member
Joined
Aug 12, 2011
Messages
8
I am working on a project where i need to go to a website and click on the link to download the file into excel.

I want to make something where it can pull the file into an already open workbook and then refresh it daily. I have had some luck using others codes to actually open the site but then i cant figure out how to download the link. (especially because there are so many to choose from)

The website is http://investor.shareholder.com/bhi/rig_counts/rc_index.cfm

and if you scroll down the link is
North America Rotary Rig Counts - see all 13 tabs in spreadsheet. Rigs by oil vs. gas; trajectory; rigs by state, GOM, etc

Any help would be greatly appreciated!!!
Thanks in advance:)
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,224,531
Messages
6,179,379
Members
452,907
Latest member
Roland Deschain

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