View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Scossa Scossa is offline
external usenet poster
 
Posts: 26
Default Form, Dual Monitors

On 25 Ago, 01:02, Slim Slender wrote:
I am using Excel 2007 on Windows XP with dual monitors. I have a work
book that is to be shared that has a form that I built. For some
reason
when the workbook is open on one screen the form will open on the
other monitor. Any ideas why and how to control/ prevent this?


Try this:

Private Sub UserForm_Initialize()
With Me
.StartUpPosition = 3
.Left = (Application.ActiveWindow.Width - .Width) / 2
.Top = (Application.ActiveWindow.Height) / 2
End With
End Sub


Tnk for feedback.

Bye!
Scossa