Private Sub Workbook_Open()
With ActiveWindow
.WindowState = xlNormal
.Height = 400
.Width = 500
.Left = .Height / 2
.Top = .Width / 2
End With
End Sub
If you would like the opened workbook to open in the center of the screen, then modify your code as given below:
Code:
Private Sub Workbook_Open()
With ActiveWindow
.WindowState = xlNormal
.Height = 400
.Width = 500
.Left = (Application.UsableWidth * 0.25) + 1
End With
End Sub