Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default UserForm_Layout code Me.Move 0, 0 don't work

On my XP system running Office2003 I use the below code to stop anyone
from dragging my UserForm thus exposing Excels menus. All works well
on the XP machine but does not snap the form back to 0,0 on a machine
running Win2000 and Excel97.
WHY??????

Private Sub UserForm_Layout()
Me.Move 0, 0
End Sub

Is there other ways to accomplish this goal.

Rick
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default UserForm_Layout code Me.Move 0, 0 don't work

In help for the Layout Event in xl97 it says:
Occurs when a form, Frame, or MultiPage changes size. (works fine for me in
xl97 in that case - changing size)

Moving doesn't seem to equate to changing the size. Not sure why it works
in XP iwth Office 2003

--
Regards,
Tom Ogilvy



"Rick Brown" wrote in message
om...
On my XP system running Office2003 I use the below code to stop anyone
from dragging my UserForm thus exposing Excels menus. All works well
on the XP machine but does not snap the form back to 0,0 on a machine
running Win2000 and Excel97.
WHY??????

Private Sub UserForm_Layout()
Me.Move 0, 0
End Sub

Is there other ways to accomplish this goal.

Rick



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
VBA Code - Find & Move Youlan Excel Discussion (Misc queries) 4 October 28th 08 07:26 PM
VBA Code - Find & Move Youlan Excel Discussion (Misc queries) 19 May 13th 08 11:42 PM
Move/Copy Worksheet -- does not work dbsavoy Excel Worksheet Functions 4 October 2nd 07 11:45 PM
How to move files from the code Ana Excel Programming 3 May 17th 04 03:03 PM
UserForm_Layout event - Excel97 Jim[_42_] Excel Programming 0 February 10th 04 10:30 PM


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