Question : refresh ribbon any time a worksheet is activated

We are in the process of updating dynamic menu from 2003 to 2010 to run custom excel spreadsheets.

I have a dynamic ribbon that populates menu commands on information contained in selected worksheets.  I need the ribbon to reset some elements and hide / enable others each time a worksheet is selected so that it will display commands relevant to that worksheet.  

I have a xlam (add-in) file containing the ribbon control xml and all macro's.  Typically the worksheets are all xlsx files and contain no vba code

I use

 invalidateContentOnDrop="true"

in xml to invalidate ribbon dynamic menus and force it to repopulate each time they are selected but I am not aware of anything that will hide ribbon groups or buttons in the same fashion.

I was thinking a vba code run whenever a worksheet is activated to invalidate the ribbon and force it to repopulate.

Is there an easier way?

if not, how do you execute code in an add in xlam that will run when any xlsx file is open and a worksheet is activated (windowactivate)?

Appreciate the help thanks

Answer : refresh ribbon any time a worksheet is activated

well in that case either you setup client's SQL Server on Live IP and directly connect and export data to him otherwise install SQL Server 2005  in your box, export data, take backup from SQL Server 2005 and send it to client. there is not other way remain for you.
Random Solutions  
 
programming4us programming4us