Extract Data from Web link

shahzeb123

Board Regular
Joined
Jul 29, 2021
Messages
62
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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
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,224,827
Messages
6,181,197
Members
453,022
Latest member
RobertV1609

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