Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2007

Tip: Looking for answers? Try searching our database.

Event after data refresh?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
xrbbaker - 04 Jun 2007 21:08 GMT
I'm new to the VBA side of Excel.  Is there an Event built in for something
like AfterDataRefresh, or AfterSQL call or something?  I still haven't
figured out the best way to find everything available.

thx - Russ
Jim Rech - 05 Jun 2007 14:07 GMT
>> I still haven't figured out the best way to find everything available.

Using the Object Browser in the VBE is one way.  Pick your object in the
left panel (Application, Workbook, Worksheet...) and anything in the right
panel with a lightning bolt icon is an event.

Signature

Jim

| I'm new to the VBA side of Excel.  Is there an Event built in for something
| like AfterDataRefresh, or AfterSQL call or something?  I still haven't
| figured out the best way to find everything available.
|
| thx - Russ
xrbbaker - 05 Jun 2007 15:23 GMT
Thanks Jim.  That was a good exercise.  I thought method was under
application, workbook or worksheet.  I couldn't find anything there so I
searched and eventually found the BeforeRefresh method under the QueryTable
object.  So if I'm writing VBA code using the Query Table object does it
matter where I put the code - ThisWorkbook, Sheet1, or Module?

thanks

> >> I still haven't figured out the best way to find everything available.
>
[quoted text clipped - 8 lines]
> |
> | thx - Russ
Jim Rech - 05 Jun 2007 15:33 GMT
>>ThisWorkbook, Sheet1, or Module?

None of the above.  You have to use a class module.  This may help:

http://support.microsoft.com/kb/213187

Signature

Jim

| Thanks Jim.  That was a good exercise.  I thought method was under
| application, workbook or worksheet.  I couldn't find anything there so I
[quoted text clipped - 16 lines]
| > |
| > | thx - Russ
xrbbaker - 05 Jun 2007 15:52 GMT
Ahh.  I'm reading Excel VBA Programming for Dummies and I'm about half way
through.  There hasn't been any mention yet of classes, but I see how it can
work.  Thanks much.

> >>ThisWorkbook, Sheet1, or Module?
>
[quoted text clipped - 25 lines]
> | > |
> | > | thx - Russ

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.