Extract Data from Web link

shahzeb123

Board Regular
Joined
Jul 29, 2021
Messages
61
Office Version
  1. 2016
Platform
  1. Windows
Hi guys,

I am getting too much help from all of you guys. I am overwhelmed. Thank you so much :)

Now my query is i need to extract online exchange rate table from web.

The link is Currency Exchange Table (US Dollar - USD) - X-Rates

I have done this by "GET EXTERNAL DATA - FROM WEB"

However, what i want to do is to have a button for this so that when i click on the button it fetches the current data from web.

Hoping you guys can help me as always, waiting for the positive response.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Build your query and close and load to your workbook. then create a command button and attach this VBA code to the button

VBA Code:
Private Sub CommandButton1_Click()
ActiveWorkbook.RefreshAll
End Sub
 
Upvote 0
Solution
Thanks its work great !

Little help also, can we add a dialog box where it says "Update Complete" and on cell A1 it writes the current date and time.

Thanks for your help.
 
Upvote 0
VBA Code:
Private Sub CommandButton1_Click()
ActiveWorkbook.RefreshAll
MsgBox "Update Complete"
Range("A1")= Date & Time
End Sub
 
Upvote 0
It is working great as always. Thank you so much.

However, I am not sure its me over thinking or its real, The dailog box pop up before the update. Meaning when i clik OK on update complete dailog box , the pag is still loading
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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