Force Excel to always open on Primary Monitor

kgartin

Board Regular
Joined
May 6, 2010
Messages
207
Office Version
  1. 365
Platform
  1. Windows
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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Try this

Code:
Private Sub Workbook_Open()
   Application.WindowState = xlNormal
   Application.Top = 0
   Application.Left = 0
  Application.WindowState = xlMaximized
End Sub
 
Upvote 0
Try this

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


Yessir, that did it! Thanks!
 
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,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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