Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Run Macro on External Data Refresh

I want to run a macro after Excel automatically updates a
query from the internet. I've tried the suggestions from
earlier posts i.e. running macro on change of cell, and
the macro only runs if user keys change.

Any thoughts. Thanks John Witte
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Run Macro on External Data Refresh

What version of Excel.

How is the query run - is it a querytable. Instantiate events for the table
and use the AfterRefresh event.

http://support.microsoft.com/default...03&Product=xlw
XL2000: How to Use the Query BeforeRefresh and AfterRefresh Events

http://support.microsoft.com/default...35&Product=xlw
XL97: How to Use the Query Before and AfterRefresh Events

--
Regards,
Tom Ogilvy


"John Witte" wrote in message
...
I want to run a macro after Excel automatically updates a
query from the internet. I've tried the suggestions from
earlier posts i.e. running macro on change of cell, and
the macro only runs if user keys change.

Any thoughts. Thanks John Witte



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Run Macro on External Data Refresh

Tom,
I am using Excel 2003. The query is a refreshable web
query that is set to automatically update every minute,
without the user hitting the refresh button. The
workbook has 20 web queries in 20 different sheets, and a
master sheet that collects and summaries the data on the
20 sheets.

I would like for the macro to run after all 20 have been
updated. The refresh occurs automatically in the
background every minute, and the macro does not initiate
another refresh.

I want the software to work without the user constantly
hitting refresh.

Thanks, John Witte

-----Original Message-----
What version of Excel.

How is the query run - is it a querytable. Instantiate

events for the table
and use the AfterRefresh event.

http://support.microsoft.com/default.aspx?scid=kb;en-

us;287103&Product=xlw
XL2000: How to Use the Query BeforeRefresh and

AfterRefresh Events

http://support.microsoft.com/default.aspx?scid=kb;en-

us;182735&Product=xlw
XL97: How to Use the Query Before and AfterRefresh Events

--
Regards,
Tom Ogilvy


"John Witte" wrote

in message
...
I want to run a macro after Excel automatically

updates a
query from the internet. I've tried the suggestions

from
earlier posts i.e. running macro on change of cell, and
the macro only runs if user keys change.

Any thoughts. Thanks John Witte



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Run Macro on External Data Refresh

did you test to see if the event fires after the refresh?

--
Regards,
Tom Ogilvy

"John Witte" wrote in message
...
Tom,
I am using Excel 2003. The query is a refreshable web
query that is set to automatically update every minute,
without the user hitting the refresh button. The
workbook has 20 web queries in 20 different sheets, and a
master sheet that collects and summaries the data on the
20 sheets.

I would like for the macro to run after all 20 have been
updated. The refresh occurs automatically in the
background every minute, and the macro does not initiate
another refresh.

I want the software to work without the user constantly
hitting refresh.

Thanks, John Witte

-----Original Message-----
What version of Excel.

How is the query run - is it a querytable. Instantiate

events for the table
and use the AfterRefresh event.

http://support.microsoft.com/default.aspx?scid=kb;en-

us;287103&Product=xlw
XL2000: How to Use the Query BeforeRefresh and

AfterRefresh Events

http://support.microsoft.com/default.aspx?scid=kb;en-

us;182735&Product=xlw
XL97: How to Use the Query Before and AfterRefresh Events

--
Regards,
Tom Ogilvy


"John Witte" wrote

in message
...
I want to run a macro after Excel automatically

updates a
query from the internet. I've tried the suggestions

from
earlier posts i.e. running macro on change of cell, and
the macro only runs if user keys change.

Any thoughts. Thanks John Witte



.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Refresh table with external data? David K. Links and Linking in Excel 0 November 5th 09 08:57 PM
External data refresh Texas Tonie[_2_] Excel Discussion (Misc queries) 1 April 17th 07 11:02 AM
external data automatic refresh through macro/query Texas Tonie[_2_] Excel Discussion (Misc queries) 0 April 12th 07 07:52 PM
Automatic refresh of external data Texas Tonie Excel Discussion (Misc queries) 1 April 11th 07 05:56 AM
external data refresh shoreguy Excel Discussion (Misc queries) 0 March 7th 06 06:30 PM


All times are GMT +1. The time now is 01:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"