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!
 

Some videos you may like

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.

mrshl9898

Well-known Member
Joined
Feb 6, 2012
Messages
1,709
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
 

Watch MrExcel Video

Forum statistics

Threads
1,127,585
Messages
5,625,654
Members
416,124
Latest member
DeMoNloK

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
Top