Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default 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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default 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.




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
Where 2 place the code? (Worksheet Codes Vs. Modules) FARAZ QURESHI Excel Discussion (Misc queries) 3 February 23rd 09 02:01 AM
Wherre best to place code luke New Users to Excel 2 August 22nd 05 08:25 PM
Where to place Code question Stuart[_21_] Excel Programming 9 April 28th 05 08:06 PM
Place space in postal code Ange[_3_] Excel Programming 9 November 3rd 04 09:13 AM
Place code in a new workbook with a macro. help_wanted Excel Programming 1 April 1st 04 04:51 PM


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

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

About Us

"It's about Microsoft Excel"