Download file (FX) from Intranet site and paste contents of downloaded excel sheet to another excel (automatic)

nitin7181

New Member
Joined
May 31, 2016
Messages
1
Hi Excel Gurus

Basically i have a requirement to download file from intranet site which takes me to a webpage where I have to select which month-year FX conversion file I need to download from drop down , Once I select the time (e.g May_2016) and click on download (button) , it gives option to open, Save or save as

The contents of the downloaded excel file is FX rates, I need to select all rate, copy and then paste into my worksheet every time. Now I want to automate this whole process.

I have create Active X Button with below code:

Sub Testing()
Dim URL As String
URL = "http://www.intranet.company.com/exchangerates/?FuseAction=MidMonXLS"
Dim IE As Object
Set IE = CreateObject("internetexplorer.application")
IE.Visible = True
IE.Navigate URL
Call Macro1
End Sub
This will open the internet explorer and take me to URL where I can select and download FX rate, then I recorded the macro1 , which click on the above mentioned ActiveX control and download the file, copy the contents of the downloaded sheet and paste at specific location in my current sheet.

When I click on the ActiveX button, its opening the intranet site, downloading the file, selecting the contents of the downloaded sheet, but then it stops at selecting specific worksheet in my current file...any help how to resolve it?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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