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
>> 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