aligning a form on the screen

  • Thread starter Thread starter JT
  • Start date Start date
J

JT

A form is displayed when my macro runs. Right now it is
in the center of my screen. I would like to keep it in
the center but move it to the far right of the screen. Is
there a way to program this?

I have looked at the properties but none of do what I
would like the form to do. Thanks for the help......
 
JT,

This is interesting. I assumed you would use the Left property in the
UserForm Initialize module. However it only works if I put in the Activate
module:

Private Sub UserForm_Activate()
Me.Left = ActiveWindow.Width - Me.Width
End Sub

hth,

Doug Glancy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top