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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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