ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   update active window (https://www.excelbanter.com/excel-programming/369106-update-active-window.html)

vj5

update active window
 
Hi
i am using a commandbar control in my com adin.
i wants to make a commandbar button disable when user open any other
application /window and again comes in excel
window activate will work for Excel application only.
how to do that?

Xcelion

update active window
 
HI Vj

I don't know whether there is any easy way out. What I did was to get the
handle to excel main window and track its lost focus and got focus events.


Thanks
Xcelion


"vj5" wrote:

Hi
i am using a commandbar control in my com adin.
i wants to make a commandbar button disable when user open any other
application /window and again comes in excel
window activate will work for Excel application only.
how to do that?



All times are GMT +1. The time now is 05:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com