Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Always on top and Deactivate event

Hi,

I've created a worksheet that displays a userform. The excel window is
located somewhere of the screen and the userform is displayed in the
top os the screen.

The userform acts as some kind of switchboard allowing users to quikly
select and open various applications.

A code was added to ensure the userform stays on top always. A button
on the userform slides the form halfway of the screen after which te
same button can be clicked to let te form slide back into the screen.

Now this al works perfectly.

But...

I would like the userform to move to the position halfway outside the
screen when I select another window, my browser for instance.

I cannot get excel to notice when i select the other window. I've
tried various combination of application and workbook with the
deactivate and windowdeactivate events.

I think this has something to do with the always on top function.

Is it possible to work around this. For instance by checking the
locations of a mouse-click against the location of the userform.

Any other suggestion are also welcome.

Thanks in advance.

Sjaak
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
Make Worksheet Deactivate Event only run once robzrob Excel Programming 3 March 14th 10 12:11 AM
WorkBook Deactivate Event faffo1980 Excel Programming 2 October 7th 09 10:35 AM
Changing sheets after the DeActivate Event. Richard Excel Discussion (Misc queries) 2 July 10th 08 03:49 PM
Workbook Deactivate event problem Jeremy Strom Excel Programming 1 May 24th 06 11:04 PM
Workbook Deactivate Event TerryF[_2_] Excel Programming 1 January 6th 04 01:16 AM


All times are GMT +1. The time now is 10:02 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"