VBA change already activated (displayed) userform's position

Sahak

Well-known Member
Joined
Nov 10, 2006
Messages
1,012
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Hi all,

Is there a way to change already activated (displayed) UserForm's position on the screen?

Thank you in advance
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Is there a way to change already activated (displayed) UserForm's position on the screen?
Somehow, I don't think this is the answer you are looking for, but without more information telling us what you actually want to do...

1) Move the cursor over the title bar of the UserForm

2) Press and hold down the left mouse button

3) Move the cursor (the UserForm will follow)

4) Release the left mouse button when you have the UserForm in the position you want it.
 
Upvote 0
Thank you very much Rick for Reply.

I'm looking for VBA code, for example push a button on UseForm & it will change UserForm's position :)
 
Upvote 0
How about
Code:
Private Sub CommandButton1_Click()
Me.Top = 201
Me.Left = 10

End Sub
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0
I'm Sorry Rick, I missed your reply. To change from old position to the middle screen for example.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top