ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   where do i place the code ? (https://www.excelbanter.com/excel-programming/343116-where-do-i-place-code.html)

Asha

where do i place the code ?
 
Actually i have an excel sheet with a query, created through sql query
builder, whenever i select the option "refresh" in "external data range"
properties dialog box, i
want to execute a particular VB code. To do so in VBA under which
method/event i have to define my code.
Hope this explains the scenario. Plz suggest.


Tom Ogilvy

where do i place the code ?
 
http://support.microsoft.com/support.../q182/7/35.asp
XL97: How to Use the Query Before and AfterRefresh Events


--
Regards,
Tom Ogilvy


"Asha" wrote in message
...
Actually i have an excel sheet with a query, created through sql query
builder, whenever i select the option "refresh" in "external data range"
properties dialog box, i
want to execute a particular VB code. To do so in VBA under which
method/event i have to define my code.
Hope this explains the scenario. Plz suggest.




Asha

where do i place the code ?
 
Thanks a lot Tom Ogilvy, the link u specified was very helpful to solve my
problem.

"Tom Ogilvy" wrote:

http://support.microsoft.com/support.../q182/7/35.asp
XL97: How to Use the Query Before and AfterRefresh Events


--
Regards,
Tom Ogilvy


"Asha" wrote in message
...
Actually i have an excel sheet with a query, created through sql query
builder, whenever i select the option "refresh" in "external data range"
properties dialog box, i
want to execute a particular VB code. To do so in VBA under which
method/event i have to define my code.
Hope this explains the scenario. Plz suggest.






All times are GMT +1. The time now is 10:15 AM.

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