Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
avi avi is offline
external usenet poster
 
Posts: 195
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show/Unload Userform StephanieH Excel Programming 2 August 24th 06 08:08 PM
unload userform problem leonidas[_35_] Excel Programming 3 July 5th 06 05:35 PM
Unload Userform doesn't work here - why? rammieib Excel Programming 1 February 23rd 06 01:51 PM
Userform Question (Load/Unload/Show/Hide) RPIJG[_76_] Excel Programming 8 November 2nd 05 08:29 PM
load/unload userform Fred[_22_] Excel Programming 3 August 22nd 05 04:00 AM


All times are GMT +1. The time now is 02:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"