Jump to content

Recommended Posts

Posted

I have one instance of Microsoft Excel running that contains 1 or more workbooks, and within this instance of Excel I open another workbook from a hyperlink on a webpage. When I click this hyperlink, the workbook opens in this Excel application, but it restores all the workbooks to not be maximized. Clarification: The Excel applications remains maximized, just the workbooks within the appplication are not maximized.

I am able to reference any or all workbooks of my choice, but what I cannto do is maimize them.

How do I do this?

Thanks

Posted

I have one instance of Microsoft Excel running that contains 1 or more workbooks, and within this instance of Excel I open another workbook from a hyperlink on a webpage. When I click this hyperlink, the workbook opens in this Excel application, but it restores all the workbooks to not be maximized. Clarification: The Excel applications remains maximized, just the workbooks within the appplication are not maximized.

I am able to reference any or all workbooks of my choice, but what I cannto do is maimize them.

How do I do this?

Thanks

Not elegant, but you could send Alt, then send left arrow, then send x
Posted (edited)

Try:

Global $xlMaximized = -4137

$oExcel.Application.Activewindow.WindowState = $xlMaximized

:D

Edit: Forgot .Application in the object path.

:D

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...