Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Prevent user moving the userform with mouse


I have a userform which is gradually moved downwards by a macro.

I would like to prevent the user from manually shifting the userform (by
dragging the title bar with the mouse). At the same time, I would like to
allow the buttons on the userform to be interactive with the user.

"UserForm1.Enabled = False" prevents the user from shifting the userform ...
but also disables all buttons on the userform!

Any help would be greatly appreciated.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Prevent user moving the userform with mouse

Why not remove the form's caption altogether, plenty of examples in this ng.
You might need add a close button, if you don't already have one, to
simulate the little x.

Regards,
Peter T

"AP" wrote in message
...

I have a userform which is gradually moved downwards by a macro.

I would like to prevent the user from manually shifting the userform (by
dragging the title bar with the mouse). At the same time, I would like to
allow the buttons on the userform to be interactive with the user.

"UserForm1.Enabled = False" prevents the user from shifting the userform

....
but also disables all buttons on the userform!

Any help would be greatly appreciated.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Prevent user moving the userform with mouse


Thanks for the excellent suggestion ... I found the code in "Colo's
Junk Room".

Cheers

On Sep 4, 2:46 am, "Peter T" <peter_t@discussions wrote:
Why not remove the form's caption altogether, plenty of examples in this ng.
You might need add a close button, if you don't already have one, to
simulate the little x.

Regards,
Peter T

"AP" wrote in message

...





I have a userform which is gradually moved downwards by a macro.


I would like topreventtheuserfrom manually shifting the userform (by
dragging the title bar with the mouse). At the same time, I would like to
allow the buttons on the userform to be interactive with theuser.


"UserForm1.Enabled = False" prevents theuserfrom shifting the userform

...
but also disables all buttons on the userform!


Any help would be greatly appreciated.- Hide quoted text -


- Show quoted text -



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
how do I prevent the mouse pointer disappearing ? Chris J. New Users to Excel 0 October 5th 06 11:48 AM
Moving shapes with the mouse NickHK Excel Programming 1 August 14th 06 11:30 AM
Prevent user moving to next control johncassell[_11_] Excel Programming 7 July 31st 05 08:12 PM
moving mouse highlights cells without touching left mouse button bremboy Excel Discussion (Misc queries) 2 January 27th 05 06:19 PM
moving mouse pointer nath Excel Programming 1 August 16th 04 08:36 PM


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