PC Review


Reply
Thread Tools Rate Thread

Automatically start a macro after data refresh

 
 
Kurt Barr
Guest
Posts: n/a
 
      17th Mar 2010
I've set up a few data connects and I want to start up a macro each time
after I've refreshed those connections. I only want the macro to run when I
refresh the query and I only want to refresh manually.

Is there a command to do that?
 
Reply With Quote
 
 
 
 
B Lynn B
Guest
Posts: n/a
 
      17th Mar 2010
Why not just write a macro to perform the manual refresh, then call whatever
other procedure you want to run? i.e.

Range("a1").ListObject.QueryTable.Refresh
call mySub

"Kurt Barr" wrote:

> I've set up a few data connects and I want to start up a macro each time
> after I've refreshed those connections. I only want the macro to run when I
> refresh the query and I only want to refresh manually.
>
> Is there a command to do that?

 
Reply With Quote
 
Kurt Barr
Guest
Posts: n/a
 
      17th Mar 2010
Good point. I hadn't even thought about it that way. I guess taking the steps
to kick off a macro versus the refresh is about the same.

Thanks!

"B Lynn B" wrote:

> Why not just write a macro to perform the manual refresh, then call whatever
> other procedure you want to run? i.e.
>
> Range("a1").ListObject.QueryTable.Refresh
> call mySub
>
> "Kurt Barr" wrote:
>
> > I've set up a few data connects and I want to start up a macro each time
> > after I've refreshed those connections. I only want the macro to run when I
> > refresh the query and I only want to refresh manually.
> >
> > Is there a command to do that?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to automatically select the last row of data after refresh diepvic Microsoft Excel Programming 10 24th Jun 2009 05:12 PM
Macro to run refresh of linked tables automatically Brett Barry: Go Get Geek! Microsoft Access Macros 0 23rd Sep 2008 10:17 PM
how do I get a formula to automatically refresh that's a macro? =?Utf-8?B?VGVk?= Microsoft Excel Worksheet Functions 5 10th Aug 2007 08:04 PM
automatically refresh macro Jim Microsoft Excel Worksheet Functions 2 10th Jun 2004 01:06 AM
Web Query Refresh - Automatically Run Macro Donnie Stone Microsoft Excel Programming 1 19th Sep 2003 05:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:30 PM.