Hi all,
I have 2 screens in my office. I want to write a code that maximizes Excel when Excel window is positioned on the second screen. I wish this code to be null if Excel window was on the primary screen. I tried a lot but I did not get it to work.
I have the following code. it maximizes Excel on the second screen. how can I alter it to be within if statement instead?
I am a beginner. So, any help will be super appreciated

Sub Max_on_Screen2()
 With Application
 .WindowState = xlNormal
 .Left = 1200
 .WindowState = xlMaximized
 End With
End Sub