ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Unload/Hide Userform when switching to a new Wbk (https://www.excelbanter.com/excel-programming/385285-unload-hide-userform-when-switching-new-wbk.html)

avi

Unload/Hide Userform when switching to a new Wbk
 
Hello,

How can i cause a UserForm to unload/Hide when the user switches to
another workbook, without using the Workbook_Deactivate event in the
Workbook VBA code area?

I look for a different approach because the UserForm will be trigered
by an add-in and the active workbook will not have a Workbook VBA code
area with the Deactivate event

Thanks a lot
Avi


Jim Thomlinson

Unload/Hide Userform when switching to a new Wbk
 
Take a look at this for application level events which will catch the
Deactive evnet of the workbook...

http://www.cpearson.com/excel/AppEvent.htm
--
HTH...

Jim Thomlinson


"avi" wrote:

Hello,

How can i cause a UserForm to unload/Hide when the user switches to
another workbook, without using the Workbook_Deactivate event in the
Workbook VBA code area?

I look for a different approach because the UserForm will be trigered
by an add-in and the active workbook will not have a Workbook VBA code
area with the Deactivate event

Thanks a lot
Avi




All times are GMT +1. The time now is 08:20 AM.

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