ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
CMChris Manger20/05/2010

Since SolidWorks doesnt support dual-monitors (tsk-tsk), my VBA forms center on the wrong screen (form default is "CenterOwner").  This is a common problem in other applications, inlcuding Excel.


I found the code below to work in Excel, but does SolidWorks have a similar Top and Left call?

Private Sub UserForm_Activate() 
     'Position top/left of Excel App
    Me.Top = Application.Top
    Me.Left = Application.Left
    
     'Approx over top/left  cell (depends on  toolbars visible)
    Me.Top = Application.Top + 110
    Me.Left = Application.Left + 25
End Sub