Force Excel to always open on Primary Monitor

kgartin

Board Regular
Joined
May 6, 2010
Messages
203
I have 3 monitors. Excel seems to arbitrarily open on one of the other two monitors other than the primary. If I move Excel to the primary monitor, open a new worksheet (in the same monitor) and then close Excel, it opens in the primary thereafter.

I want to find a way to ALWAYS under any and all circumstances open Excel in the Primary window.

I found something in a search that says to do this:

Code:
Private Sub Workbook_Open()
Application.Top = 0
Application.Left = 0
End Sub

but I get a Run-Time error '1004': Method 'Top' of object'_Application' failed

Help?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Try this

Code:
Private Sub Workbook_Open()
   Application.WindowState = xlNormal
   Application.Top = 0
   Application.Left = 0
  Application.WindowState = xlMaximized
End Sub
 
Upvote 0
Yessir, that did it! Thanks!
Where did you paste this code? I'm only seeing workbook-specific ways to add this in, and it looks like you applied it to ALL Excel files, which is what I'm hoping to do, as well.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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