>>this line will bind events of oButton to identically-named methods of oVFPButton. Try exporting the events of oBar to see what can be bound, and base a class on the exported events. Try:
>>
>>oComUtil.ExportEvents(oButton,'oBtnEvnts.PRG')
>
>The problem is that
>
>oComUtil.ExportEvents(oButton,'oBtnEvnts.PRG')
>
>doesn't do anything with Excel
>97, but it brings this in Windows 2000 +Office 2000
>
>DEFINE CLASS _CommandBarButtonEvents AS custom
> PROCEDURE Click(Ctrl,CancelDefault)
> * Add user code here
> ENDPROC
>ENDDEFINE
>
Then I suspect that the button's Click() event is not reachable under Excel97 - certainly the object models between Excel2000 and Excel97 are different. Sorry.