ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Running a macro from an auto-refresh (https://www.excelbanter.com/excel-worksheet-functions/161156-running-macro-auto-refresh.html)

Chris Youlden

Running a macro from an auto-refresh
 
I have a worksheet that imports data using a data query from an Access
database.

The external data range properties are set to auto refresh the data
every 5 minutes.

Is there a way for the data refresh to automatically run a macro every
time it occurs?

TIA

--

Chris

Gary''s Student

Running a macro from an auto-refresh
 
Use an OnTome event to run every 5 minutes as well, but set to run say 5
seconds after the query refresh.
--
Gary''s Student - gsnu2007


"Chris Youlden" wrote:

I have a worksheet that imports data using a data query from an Access
database.

The external data range properties are set to auto refresh the data
every 5 minutes.

Is there a way for the data refresh to automatically run a macro every
time it occurs?

TIA

--

Chris


Chris Youlden

Running a macro from an auto-refresh
 
Gary''s Student wrote:
Use an OnTome event to run every 5 minutes as well, but set to run say 5
seconds after the query refresh.


Excellent - thanks. I'll give it a go.

Chris


All times are GMT +1. The time now is 07:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com