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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,215,884
Messages
6,127,567
Members
449,385
Latest member
KMGLarson

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