cancel
Showing results for 
Search instead for 
Did you mean: 

Maximize the Excel Screen

AsitabhaDeb
Level 6
Hi Experts,

Can you please help me how to Maximize Excel screen using code, I don't know if any BO is available or not.
Please help me ASAP.

------------------------------
Asitabha Deb
------------------------------
5 REPLIES 5

NicholasZejdlik
Level 9
You can create a new page on the Excel VBO. Passing an input of Handle, here's the code:

Dim Excel = GetInstance(Handle)
Excel.WindowState = -4137 ' xlMaximized​


------------------------------
Nicholas Zejdlik
RPA Developer
------------------------------

Hi.

Why I am getting error " End of Statement Expected" after enter the code.
I have declared "handle input parameter.




------------------------------
Asitabha Deb
------------------------------

Make sure you're entering those as two separate lines of code. There should be a line return after the close parenthesis.

------------------------------
Dave Morris
Cano Ai
Atlanta, GA
------------------------------

Dave Morris, 3Ci at Southern Company

Hi,

Why I am getting below error message.
Attachment for ref.


------------------------------
Asitabha Deb
------------------------------

Because it is Excel.WindowState, not Excel.WindowsState

------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------