How can I setup an Automatic Refresh All for Stock Data Type fields?

pianohohn

New Member
Joined
Jul 19, 2015
Messages
18
I have Excel2016 and I've created a stock market excel sheet that tracks stocks prices, etc using the new "Stock Data Types" feature, super cool! To see the latest stock data I have to manually press the Refresh All button which while simple is starting to become an annoying routine. What is the simplest approach and step by step instructions to have a function that Automatically presses the "Refresh All" on my behalf at my chosen interval? I realize your instructions will be Macro and/or VBA in nature which I am ready to follow your instructions (I'm IT and analytic trained). Please assist, thank you very much!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
This will refresh the book every 5 mins. And run when the book opens

VBA Code:
Private Sub Workbook_Open()

DoEvents

Application.Wait (Now + TimeValue("0:05:00"))

ThisWorkbook.RefreshAll

End Sub

Needs to go in the 'ThisWorkbook" module
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,617
Latest member
Narendra Babu D

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