Jump to content
Sign in to follow this  
hutteto

Maximizing Excel workbook(s) within Excel the application

Recommended Posts

hutteto

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

Share this post


Link to post
Share on other sites
sb1920alk

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

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×